Skip to content

Commit 8948077

Browse files
parsec-cli-tests.sh: adapt to new serialNumber output
openssl 3.2.0 from yocto prints serialNumber to output without spaces so support both that and the old with spaces output to pass the test. Not using regular expressions to work on simpler grep implementations. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
1 parent d0d0ca8 commit 8948077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/parsec-cli-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ test_csr() {
231231
run_cmd $OPENSSL req -text -noout -verify -in ${MY_TMP}/${KEY}.csr >${MY_TMP}/${KEY}.txt
232232
debug cat ${MY_TMP}/${KEY}.txt
233233

234-
if ! cat ${MY_TMP}/${KEY}.txt | grep "Subject:" | grep "serialNumber = ${TEST_SERIAL}"; then
234+
if ! cat ${MY_TMP}/${KEY}.txt | grep "Subject:" | grep -e "serialNumber = ${TEST_SERIAL}" -e "serialNumber=${TEST_SERIAL}"; then
235235
echo "Error: The CSR does not contain the serialNumber field of the Distinguished Name"
236236
EXIT_CODE=$(($EXIT_CODE+1))
237237
fi

0 commit comments

Comments
 (0)