Skip to content

Commit

Permalink
debug commands; use subshell
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Nov 28, 2024
1 parent db168fa commit b1dc285
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/cargo_llvm_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ jobs:
- name: Run code coverage (nextest)
run: |
set +x
set +e
IOTA_SKIP_SIMTESTS=1 cargo llvm-cov --ignore-run-fail --no-report nextest -vv
if ! find target/llvm-cov-target -name '*.profraw' -print0 | xargs -0 $LLVM_PROFDATA merge \
if ! (find target/llvm-cov-target -name '*.profraw' -print0 | xargs -0 "$LLVM_PROFDATA" merge \
--failure-mode=warn \
--sparse \
--output target/nextest.profdata; then
--output target/nextest.profdata); then
echo "Scanning for corrupted .profraw files. This might take a while."
find target/llvm-cov-target -name '*.profraw' | while read file; do
Expand All @@ -96,16 +97,17 @@ jobs:
- name: Run code coverage (simtest)
run: |
set +x
git clean -fd
set +e
./scripts/simtest/simtest-cov.sh
if ! find target/llvm-cov-target -name '*.profraw' -print0 | xargs -0 $LLVM_PROFDATA merge \
if ! (find target/llvm-cov-target -name '*.profraw' -print0 | xargs -0 "$LLVM_PROFDATA" merge \
--failure-mode=warn \
--sparse \
--output target/simtest.profdata; then
--output target/simtest.profdata); then
echo "Scanning for corrupted .profraw files. This might take a while."
find target/llvm-cov-target -name '*.profraw' | while read file; do
Expand Down
2 changes: 1 addition & 1 deletion scripts/simtest/simtest-cov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ TOOLCHAIN=$(rustup show active-toolchain | cut -d ' ' -f 1)
LLVM_PROFDATA="$HOME/.rustup/toolchains/$TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata"

MSIM_WATCHDOG_TIMEOUT_MS=60000 MSIM_TEST_SEED=1 cargo llvm-cov --ignore-run-fail --no-report \
nextest -vv --cargo-profile simulator
nextest -vv

# remove the patch
git checkout .cargo/config Cargo.toml Cargo.lock

0 comments on commit b1dc285

Please sign in to comment.