Skip to content

Commit

Permalink
Merge pull request #2699 from YJDoc2/fix/minor_ci
Browse files Browse the repository at this point in the history
Add missed test-threads=1 to coverage CI and feature-tests
  • Loading branch information
YJDoc2 authored Feb 20, 2024
2 parents 0c068b8 + 9097a56 commit e44ce9e
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 --no-default-features --features "$1" -- --test-threads=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 e44ce9e

Please sign in to comment.