Skip to content

Commit

Permalink
Add test-threads=1 to coverage CI and feature-test
Browse files Browse the repository at this point in the history
  • Loading branch information
YJDoc2 committed Feb 20, 2024
1 parent 0c068b8 commit e4f2b4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/features_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -32,4 +32,4 @@ test_features "systemd"
test_features "v2 cgroupsv2_devices"
test_features "systemd cgroupsv2_devices"

exit 0
exit 0

0 comments on commit e4f2b4d

Please sign in to comment.