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 <jjelen@redhat.com>
  • Loading branch information
Jakuje committed Aug 20, 2024
1 parent 25e9de6 commit f824452
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 f824452

Please sign in to comment.