diff options
author | NeilBrown <neilb@suse.de> | 2012-10-23 00:21:32 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-23 00:21:32 +0200 |
commit | 1dc837e4edc805819a1ff40add3d0beecfeecdbb (patch) | |
tree | b47b64d27080d2001a57b0ae41c5e298c47c7859 /test | |
parent | test: redirect all output to log file to keep output clean (diff) | |
download | mdadm-1dc837e4edc805819a1ff40add3d0beecfeecdbb.tar.xz mdadm-1dc837e4edc805819a1ff40add3d0beecfeecdbb.zip |
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>
Diffstat (limited to 'test')
-rwxr-xr-x | test | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |