texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/tp/tests parser_tests.sh


From: Patrice Dumas
Subject: texinfo/tp/tests parser_tests.sh
Date: Tue, 20 Mar 2012 20:39:23 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        12/03/20 20:39:23

Modified files:
        tp/tests       : parser_tests.sh 

Log message:
        Use ok and fail instead of 1/0 for the tests results, idea from Karl.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/parser_tests.sh?cvsroot=texinfo&r1=1.2&r2=1.3

Patches:
Index: parser_tests.sh
===================================================================
RCS file: /sources/texinfo/texinfo/tp/tests/parser_tests.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- parser_tests.sh     30 Jan 2012 01:04:21 -0000      1.2
+++ parser_tests.sh     20 Mar 2012 20:39:23 -0000      1.3
@@ -37,7 +37,12 @@
   [ -d "$dir" ] || mkdir $dir
   (export srcdir_test=$dir; cd "$dir" && ../"$srcdir"/"$command" -dir $dir 
$arg)
   result=$?
-  echo "$dir: $result"
+  if [ "z$result" = 'z0' ]; then
+    result_text=ok
+  else
+    result_text=fail
+  fi
+  echo "$dir: $result_text"
   [ $result != 0 ] && failed=1
 done
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]