summaryrefslogtreecommitdiff
path: root/regress-driver
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-06 10:03:24 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-06 10:03:24 +0000
commit58caf2c366679f1466a7e0e5962d87879389b1f6 (patch)
tree9ccb387ed3f4f69bfc58d8715642738087e92586 /regress-driver
parentf17384a0ca128691571d04ccd053a214d93c604e (diff)
downloadgpsd-58caf2c366679f1466a7e0e5962d87879389b1f6.tar.gz
Prevent spurious failure indication from shell trap statement.
Diffstat (limited to 'regress-driver')
-rwxr-xr-xregress-driver2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress-driver b/regress-driver
index a7121153..70cffaa1 100755
--- a/regress-driver
+++ b/regress-driver
@@ -40,7 +40,7 @@ GPSFILTER="sed -e /^GPSD,X/d -e /^gpsd:/d -e /^gpsfake/d -e /GPS-DATA/d -e /WATC
case $mode in
regress)
echo "Testing the daemon..." >&2
- trap 'rm -f $dir/test.chk $dir/test-whole.chk $dir/test-trunk.chk $dir/log-copy.chk $dir/diff $dir/diff-trunc; exit 1' 0 1 2 15
+ trap 'rm -f $dir/test.chk $dir/test-whole.chk $dir/test-trunk.chk $dir/log-copy.chk $dir/diff $dir/diff-trunc; exit $errors' 0 1 2 15
errors=0; total=0; notfound=0;
for f in $*; do
dir=`dirname $f`