diff --git a/.github/workflows/crash-kill.yml b/.github/workflows/crash-kill.yml index 3f94c0aec7..32e8bd8fa3 100644 --- a/.github/workflows/crash-kill.yml +++ b/.github/workflows/crash-kill.yml @@ -64,9 +64,10 @@ jobs: RUST_BACKTRACE: 1 run: | set -o pipefail - # v3's large-transaction variant (#550) needs the test hooks. + # v3's large-transaction variant (#550) needs the test hooks; pass + # the feature wherever the checked-out Cargo.toml defines it. features="" - if [ "$CRASH_REF" != main ]; then features="--features test-oracle"; fi + if grep -q '^test-oracle = ' Cargo.toml; then features="--features test-oracle"; fi cargo test $features --test crash_kill_test -- --nocapture 2>&1 | tee crash-kill-output.txt - name: Record SIGKILL crash-safety failure @@ -82,7 +83,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 (v3: --features test-oracle)" + echo "- Reproduce: cargo test --test crash_kill_test -- --nocapture (add --features test-oracle 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"