summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest7
1 files changed, 6 insertions, 1 deletions
diff --git a/test b/test
index e3133850..3f8515fe 100755
--- a/test
+++ b/test
@@ -232,7 +232,12 @@ do_test() {
echo "succeeded"
_fail=0
else
- echo "FAILED - see $targetdir/log for details"
+ log=log
+ if [ $exitonerror == 0 ]; then
+ log=log-`basename $_script`
+ mv $targetdir/log $targetdir/$log
+ fi
+ echo "FAILED - see $targetdir/$log for details"
_fail=1
fi
if [ "$savelogs" == "1" ]; then