Commit e29ff91
committed
scripts: fix crl-gen-openssl.test false failure with pipefail
The revoked-cert verification check uses `echo "$var" | grep -q`
to look for "revoked" or "error 23" in the openssl verify output.
With `set -o pipefail`, when grep -q finds the pattern and exits
early, echo may fail writing to the closed pipe (SIGPIPE/EPIPE,
exit 141 or 1). pipefail reports the pipeline status as that
non-zero code from echo, even though grep matched successfully.
The `!` negation then treats this as success (pattern not found),
causing the test to incorrectly report failure.
Replace echo|grep pipelines with bash [[ ]] glob pattern matching,
which avoids pipes entirely and is immune to this interaction.
Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>1 parent 679b0ec commit e29ff91
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | | - | |
103 | | - | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
0 commit comments