test: keep separate log file for each failed test.
If a test failed when --keep-going is selected, give the log file a name based on the test name, so that all the logs can be examined afterwards. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
45e34015b6
commit
1dc837e4ed
7
test
7
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
|
||||
|
|
Loading…
Reference in New Issue