8000 ci(crash-kill): pass test-hooks where Cargo.toml defines it (#551) by adityamukho · Pull Request #717 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/crash-kill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
# v3's large-transaction variant (#550) needs the test hooks; pass
# the feature wherever the checked-out Cargo.toml defines it.
features=""
if grep -q '^test-oracle = ' Cargo.toml; then features="--features test-oracle"; fi
if grep -q '^test-hooks = ' Cargo.toml; then features="--features test-hooks"; fi
echo "crash-kill features: ${features:-(none)}"
cargo test $features --test crash_kill_test -- --nocapture 2>&1 | tee crash-kill-output.txt

Expand All @@ -84,7 +84,7 @@ jobs:
echo
echo "- Run: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
echo "- Commit: $(git rev-parse HEAD)"
echo "- Reproduce: cargo test --test crash_kill_test -- --nocapture (add --features test-oracle where Cargo.toml defines it)"
echo "- Reproduce: cargo test --test crash_kill_test -- --nocapture (add --features test-hooks where Cargo.toml defines it)"
echo " (set MINIGRAF_CRASH_KILL_ROUNDS to raise the round count; MINIGRAF_CRASH_KILL_SEED to the printed base seed to replay)"
echo
echo "## Test output"
Expand Down
Loading
0