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 8d5bde76f21889f2938d73ae6828b50db7e9189b..c27afdab98d24fc7f509473cdda5df074eec9ab9 100755 (executable)
@@ -147,8 +147,7 @@ do
        continue
     fi
 
-    echo "------------------------------------------------------------"
-    echo "----- $testbase running"
+    echo "----- $testbase starting"
 
     if sh $RUNSHFLAGS "$testscript"
     then
index 8729a4ab15986ae0a5909dd6efab2c53372019bc..3cbb7687c1b583263ac448b616080fce9c5e81b3 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
+}
+