Add verbosity to a failing bench QA script.
[xfstests-dev.git] / bench
diff --git a/bench b/bench
index 4126eb7eb5862a5d744c37132a5becc092c09ac5..4b5a5410d2c3c170c5977cf4aa98db1b99de5d9d 100755 (executable)
--- a/bench
+++ b/bench
@@ -61,6 +61,7 @@ _cleanup()
 {
     echo "        *** umount"
     umount $SCRATCH_DEV >/dev/null 2>&1
+    rm -f $tmp.*
 }
 
 OUT="bench.out"
@@ -90,11 +91,13 @@ _fail()
 bench_mkfs_xfs()
 {
     mkfs_xfs -f $extra_mkfs_options $@
+    [ $? -ne 0 ] && _fail "mkfs [$extra_mkfs_options] FAILED"
 }
 
 bench_mount_xfs()
 {
     mount -t xfs $extra_mount_options $@
+    [ $? -ne 0 ] && _fail "mount [$extra_mount_options] FAILED"
 }
 
 _run_benchmark()