diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-05-30 12:12:26 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-03 19:55:00 +0200 |
commit | 0ac77d86c0aa3956741aa6657256373ec0189238 (patch) | |
tree | d7c822f2621ab3256767bca5f3e06902b89954a0 /tests/userid | |
parent | c018de363fc17547d6c27005a22d425a58e53d5a (diff) | |
download | gnutls-0ac77d86c0aa3956741aa6657256373ec0189238.tar.gz |
Only print output if something fails
Diffstat (limited to 'tests/userid')
-rwxr-xr-x | tests/userid/userid | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/userid/userid b/tests/userid/userid index ca412674b6..52c906f8bf 100755 --- a/tests/userid/userid +++ b/tests/userid/userid @@ -20,9 +20,15 @@ # along with GnuTLS; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -set -e - srcdir=${srcdir:-.} CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT} -exec $CERTTOOL --certificate-info --infile $srcdir/userid.pem +$CERTTOOL --certificate-info --infile $srcdir/userid.pem >out 2>&1 +RET=$? +if [ $RET != 0 ];then + echo "Error in userid:" + cat out + exit 1 +fi + +exit 0 |