changeset 399:f060d728fe54

Delete error logs one test at a time -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Delete error logs one test at a time manifest hash: 746674a89f762a39cf1a679a258a92cd02440f95 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCuL3ZywK+sNU5EO8RAmYeAJ4uUd+zBdGx/H/CGKxXLjKX0vlDBwCfVRAA zVnvyYT9CnmsctYE0NKXVVU= =G53w -----END PGP SIGNATURE-----
author mpm@selenic.com
date Tue, 21 Jun 2005 17:24:41 -0800
parents 7ed217cfae9e
children 8b067bde6679
files tests/run-tests
diffstat 1 files changed, 10 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests	Tue Jun 21 17:21:56 2005 -0800
+++ b/tests/run-tests	Tue Jun 21 17:24:41 2005 -0800
@@ -21,6 +21,7 @@
 
 function run_one
 {
+    rm -f $1.err
     export TZ=GMT
     D=`mktemp -d`
     if [ "$D" == "" ] ; then
@@ -30,20 +31,20 @@
     cd $D
     fail=0
 
-    if ! $H/$f > .out 2>&1 ; then
-	echo $f failed with error code $?
+    if ! $H/$1 > .out 2>&1 ; then
+	echo $1 failed with error code $?
 	fail=1
     fi
 
-    if [ -s .out -a ! -r $H/$f.out ] ; then
-	echo $f generated unexpected output:
+    if [ -s .out -a ! -r $H/$1.out ] ; then
+	echo $1 generated unexpected output:
 	cat .out
-	cp .out $H/$f.err
+	cp .out $H/$1.err
 	fail=1
-    elif [ -r $H/$f.out ] && ! diff -u $H/$f.out .out > /dev/null ; then
-	echo $f output changed:
-	diff -u $H/$f.out .out && true
-	cp .out $H/$f.err
+    elif [ -r $H/$1.out ] && ! diff -u $H/$1.out .out > /dev/null ; then
+	echo $1 output changed:
+	diff -u $H/$1.out .out && true
+	cp .out $H/$1.err
 	fail=1
     fi
 
@@ -57,8 +58,6 @@
     TESTS=`ls test-* | grep -Ev "\.|~"`
 fi
 
-rm -f test-*.err
-
 for f in $TESTS ; do
     echo -n "."
     if ! run_one $f ; then