[CI][build] do not run musl unittests for ARM
We do not run musl unittests for x86 since
coverage will run them anyways with musl.
In the meantime, we also enabled coverage on
ARM so do the same for it too.
import platform
-import pytest
-
import host_tools.cargo_build as host # pylint:disable=import-error
MACHINE = platform.machine()
-TARGETS = ["{}-unknown-linux-gnu".format(MACHINE),
- "{}-unknown-linux-musl".format(MACHINE)]
+# No need to run unittests for musl since
+# we run coverage with musl for all platforms.
+TARGET = "{}-unknown-linux-gnu".format(MACHINE)
-@pytest.mark.parametrize(
- "target",
- TARGETS
-)
-def test_unittests(test_fc_session_root_path, target):
+def test_unittests(test_fc_session_root_path):
"""
Run unit and doc tests for all supported targets.
@type: build
"""
- extra_args = "--release --target {} ".format(target)
-
- if "musl" in target and MACHINE == "x86_64":
- pytest.skip("On x86_64 with musl target unit tests"
- " are already run as part of testing"
- " code-coverage.")
+ extra_args = "--release --target {} ".format(TARGET)
host.cargo_test(
test_fc_session_root_path,
