From e4f2b4d3232fc6ef0211818aacdd439d1fc8caa9 Mon Sep 17 00:00:00 2001 From: Yashodhan Joshi Date: Tue, 20 Feb 2024 21:14:45 +0530 Subject: [PATCH] Add test-threads=1 to coverage CI and feature-test --- .github/workflows/basic.yml | 2 +- scripts/features_test.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 52fff1857f..477f7dc682 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -106,7 +106,7 @@ jobs: - name: Run Test Coverage for youki run: | cargo llvm-cov clean --workspace - cargo llvm-cov --no-report + cargo llvm-cov --no-report -- --test-threads=1 cargo llvm-cov --no-run --lcov --output-path ./coverage.lcov - name: Upload Youki Code Coverage Results uses: codecov/codecov-action@v3 diff --git a/scripts/features_test.sh b/scripts/features_test.sh index 1b6b84a75e..bb00ad7c2f 100755 --- a/scripts/features_test.sh +++ b/scripts/features_test.sh @@ -23,7 +23,7 @@ test_package_features "libcgroups" "systemd cgroupsv2_devices" test_features() { echo "[feature test] testing features $1" "$CARGO_SH" build --no-default-features --features "$1" - "$CARGO_SH" test run --no-default-features --features "$1" + "$CARGO_SH" test run --test-threads=1 --no-default-features --features "$1" } test_features "v1" @@ -32,4 +32,4 @@ test_features "systemd" test_features "v2 cgroupsv2_devices" test_features "systemd cgroupsv2_devices" -exit 0 \ No newline at end of file +exit 0