Skip to content

Commit

Permalink
tests: Print openssl output on error
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje authored and simo5 committed Aug 21, 2024
1 parent 1784509 commit a4e673e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/trsapssam
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit a4e673e

Please sign in to comment.