summaryrefslogtreecommitdiff
path: root/regress-driver
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-07 06:46:33 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-07 06:46:33 -0500
commitf92a587345494b85446f5c9f7ebb41f010c578ff (patch)
tree7d91e171f5ca9b547fd1de14408bd442f834cca6 /regress-driver
parent39a128ea754391392509ba0cc20a9df3b33cfd25 (diff)
downloadgpsd-f92a587345494b85446f5c9f7ebb41f010c578ff.tar.gz
Portable version of kukabu's fix for the regression-test driver.
Diffstat (limited to 'regress-driver')
-rwxr-xr-xregress-driver12
1 files changed, 8 insertions, 4 deletions
diff --git a/regress-driver b/regress-driver
index ef366181..947956ba 100755
--- a/regress-driver
+++ b/regress-driver
@@ -119,7 +119,7 @@ case $mode in
fi
if test -s ${TMP}/diff-$$ ; then
errors=`expr $errors + 1`;
- error_list="${error_list}\n${f}"
+ error_list="$error_list \"${f}\""
if [ -z "$logfile" ]
then
cat ${TMP}/diff-$$
@@ -135,10 +135,14 @@ case $mode in
total=`expr $total + 1`;
done;
if test $errors -gt 0; then
- echo "Regression test FAILED: $errors errors in $total tests total ($notfound not found).";
+ echo "Regression test FAILED: $errors errors in $total tests total ($notfound not found).";
echo "The following test Failed:"
- echo "==================${error_list}"
- echo "=================="
+ echo "================================================================"
+ for err in $error_list
+ do
+ echo $err
+ done
+ echo "================================================================"
status=1;
else
echo "Regression test successful: no errors in $total tests ($notfound not found).";