From: Nikos Mavrogiannopoulos Date: Thu, 7 Aug 2014 07:07:22 +0000 (+0200) Subject: testpkcs11: exit if export_pubkey_of_privkey fails X-Git-Tag: gnutls_3_4_0~1121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d05425ad900a2c95bd67eaa88ffca7929c41cd4;p=thirdparty%2Fgnutls.git testpkcs11: exit if export_pubkey_of_privkey fails --- diff --git a/tests/suite/testpkcs11 b/tests/suite/testpkcs11 index f8ea476d8a..332c6a6163 100755 --- a/tests/suite/testpkcs11 +++ b/tests/suite/testpkcs11 @@ -137,15 +137,13 @@ export_pubkey_of_privkey () { $P11TOOL $ADDITIONAL_PARAM --login --export-pubkey "$token;object=gnutls-client;object-type=private" --outfile tmp-client-2.pub >>$TMPFILE 2>&1 if test $? != 0;then echo failed - RETCODE=1 - return + exit 1 fi $DIFF tmp-client.pub tmp-client-2.pub if test $? != 0;then echo keys differ - RETCODE=1 - return + exit 1 fi echo ok