summaryrefslogtreecommitdiff
path: root/source4/script/tests/selftest.sh
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-14 03:18:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:44 -0500
commit5ae1175460b6ac419fc30f0858e115321e689b33 (patch)
tree11b35ee5882bb8c597ad93422613e4c3eb8e244c /source4/script/tests/selftest.sh
parentd657ae5b199180ba75f1226d49f2f9e3362dec4e (diff)
downloadsamba-5ae1175460b6ac419fc30f0858e115321e689b33.tar.gz
samba-5ae1175460b6ac419fc30f0858e115321e689b33.tar.bz2
samba-5ae1175460b6ac419fc30f0858e115321e689b33.zip
r20754: Simplify code for calculating total number of failed tests.
(This used to be commit f288ca5f6805d04a2da60a26006ca293d9fa7cc0)
Diffstat (limited to 'source4/script/tests/selftest.sh')
-rwxr-xr-xsource4/script/tests/selftest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index 96ae855f27..dd0ff195a8 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -230,7 +230,7 @@ export totalfailed
if [ "$LINE" = "-- TEST --" ]; then
read NAME
read CMDLINE
- runtest "$NAME" "$CMDLINE"
+ runtest "$NAME" "$CMDLINE" || totalfailed=`expr $totalfailed + $?`
else
echo "$LINE"
fi