From 0ac77d86c0aa3956741aa6657256373ec0189238 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 30 May 2010 12:12:26 +0200 Subject: Only print output if something fails --- tests/userid/userid | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests/userid') 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 -- cgit v1.2.1