From f82445284c1c1c1515f268f2f7af541db552e359 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 20 Aug 2024 16:50:57 +0200 Subject: [PATCH] tests: Print openssl output on error Signed-off-by: Jakub Jelen --- tests/trsapssam | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/trsapssam b/tests/trsapssam index 7594024c..dd3944d6 100755 --- a/tests/trsapssam +++ b/tests/trsapssam @@ -55,6 +55,7 @@ FAIL=0 echo "$output" | grep "mechanism not allowed with this key" > /dev/null 2>&1 || FAIL=1 if [ $FAIL -ne 0 ]; then echo "Signature seem to have failed for unrelated reasons" + echo "$output"; exit 1 fi @@ -82,5 +83,6 @@ FAIL=0 echo "$output" | grep "An invalid mechanism was specified to the cryptographic operation" > /dev/null 2>&1 || FAIL=1 if [ $FAIL -ne 0 ]; then echo "Signature seem to have failed for unrelated reasons" + echo "$output"; exit 1 fi