Skip to content

Commit f506f15

Browse files
committed
CI: Grep for exact error message
`cargo +nightly` output of panic recently changed breaking our grep statement by adding the code line and a newline. Grep for the exact second line of the error message.
1 parent 8cd7861 commit f506f15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ if cargo --version | grep "1\.48"; then
2222
fi
2323

2424
# Test if panic in C code aborts the process (either with a real panic or with SIGILL)
25-
cargo test -- --ignored --exact 'tests::test_panic_raw_ctx_should_terminate_abnormally' 2>&1 | tee /dev/stderr | grep "SIGILL\\|panicked at '\[libsecp256k1\]"
25+
cargo test -- --ignored --exact 'tests::test_panic_raw_ctx_should_terminate_abnormally' 2>&1 \
26+
| tee /dev/stderr \
27+
| grep "SIGILL\\|\[libsecp256k1] illegal argument. !rustsecp256k1_v0_._._fe_is_zero(&ge->x)"
2628

2729
# Make all cargo invocations verbose
2830
export CARGO_TERM_VERBOSE=true

0 commit comments

Comments
 (0)