Cleanup check_logs feature.
authorMartin Pool <mbp@samba.org>
Wed, 29 Aug 2001 09:15:17 +0000 (09:15 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 29 Aug 2001 09:15:17 +0000 (09:15 +0000)
runtests.sh
testsuite/rsync.fns

index 8d5bde7..c27afda 100755 (executable)
@@ -147,8 +147,7 @@ do
        continue
     fi
 
-    echo "------------------------------------------------------------"
-    echo "----- $testbase running"
+    echo "----- $testbase starting"
 
     if sh $RUNSHFLAGS "$testscript"
     then
index 8729a4a..3cbb768 100644 (file)
@@ -83,3 +83,18 @@ checkit() {
     fi
 }
 
+
+# In fact, we need a more general feature of capturing all stderr/log files,
+# and dumping them if something goes wrong.
+
+checkforlogs() {
+  # skip it if we're under debian-test
+  if test -n "${Debian}" ; then return 0 ; fi
+
+  if [ -f $1 -a -s $1 ] ; then
+       echo "Failures have occurred.  $1 follows:" >&2
+       cat $1 >&2
+       exit 1
+  fi
+}
+