]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
testpkcs11: exit if export_pubkey_of_privkey fails
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 7 Aug 2014 07:07:22 +0000 (09:07 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 7 Aug 2014 07:07:22 +0000 (09:07 +0200)
tests/suite/testpkcs11

index f8ea476d8a19adf6b544fde4b4f377654a3e0e85..332c6a6163d9a213440e5a96a23f35f14b8dc376 100755 (executable)
@@ -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