From afa007a8ef00f2dace8b0d8048363aa6491ab4cc Mon Sep 17 00:00:00 2001 From: Egor Lazarchuk Date: Fri, 20 Oct 2023 13:24:40 +0100 Subject: [PATCH] feat(tests): removed unit testing with gnu Now we don't have unit tests that only work with gnu target. Signed-off-by: Egor Lazarchuk --- tests/integration_tests/build/test_unittests.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/integration_tests/build/test_unittests.py b/tests/integration_tests/build/test_unittests.py index 9fa2ef04b66..2919fb90a88 100644 --- a/tests/integration_tests/build/test_unittests.py +++ b/tests/integration_tests/build/test_unittests.py @@ -12,10 +12,7 @@ # Currently profiling with `aarch64-unknown-linux-musl` is unsupported (see # https://github.com/rust-lang/rustup/issues/3095#issuecomment-1280705619) therefore we profile and # run coverage with the `gnu` toolchains and run unit tests with the `musl` toolchains. -TARGETS = [ - "{}-unknown-linux-musl".format(MACHINE), - "{}-unknown-linux-gnu".format(MACHINE), -] +TARGET = "{}-unknown-linux-musl".format(MACHINE) @pytest.mark.timeout(600) @@ -24,12 +21,11 @@ def test_unittests(test_fc_session_root_path): Run unit and doc tests for all supported targets. """ - for target in TARGETS: - extra_args = "--target {} ".format(target) - host.cargo_test(test_fc_session_root_path, extra_args=extra_args) + extra_args = f"--target {TARGET}" + host.cargo_test(test_fc_session_root_path, extra_args=extra_args) def test_benchmarks_compile(): """Checks that all benchmarks compile""" - host.cargo("bench", f"--all --no-run --target {TARGETS[0]}") + host.cargo("bench", f"--all --no-run --target {TARGET}")