svn commit: samba r20822 - in
branches/SAMBA_4_0/source/script/tests: .
jelmer at samba.org
jelmer at samba.org
Mon Jan 15 23:42:53 GMT 2007
Author: jelmer
Date: 2007-01-15 23:42:52 +0000 (Mon, 15 Jan 2007)
New Revision: 20822
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20822
Log:
Fix total failure counting.
Modified:
branches/SAMBA_4_0/source/script/tests/selftest.sh
Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/selftest.sh 2007-01-15 19:28:24 UTC (rev 20821)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh 2007-01-15 23:42:52 UTC (rev 20822)
@@ -219,8 +219,6 @@
bin/nmblookup $CONFIGURATION -U $SERVER $NETBIOSNAME
# start off with 0 failures
-failed=0
-export failed
totalfailed=0
export totalfailed
@@ -238,12 +236,12 @@
else
echo "$LINE"
fi
- done
- )
-
- exit $totalfailed
+ done
+ exit $totalfailed
+)
+exit $?
) 9>$SMBD_TEST_FIFO
-failed=$?
+totalfailed=$?
kill `cat $PIDDIR/smbd.pid`
@@ -261,10 +259,10 @@
for f in $PREFIX/valgrind.log*; do
if [ -s $f ] && grep -v DWARF2.CFI.reader $f > /dev/null; then
echo "VALGRIND FAILURE";
- failed=`expr $failed + 1`
+ totalfailed=`expr $totalfailed + 1`
cat $f
fi
done
fi
-teststatus $ARG0 $failed
+teststatus $ARG0 $totalfailed
More information about the samba-cvs
mailing list