summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/df/df-symlink.sh2
-rwxr-xr-xtests/df/over-mount-device.sh2
-rwxr-xr-xtests/df/problematic-chars.sh2
-rwxr-xr-xtests/df/skip-rootfs.sh2
-rwxr-xr-xtests/df/total-verify.sh2
-rwxr-xr-xtests/df/unreadable.sh2
6 files changed, 12 insertions, 0 deletions
diff --git a/tests/df/df-symlink.sh b/tests/df/df-symlink.sh
index a9d8c9623..01dff24e1 100755
--- a/tests/df/df-symlink.sh
+++ b/tests/df/df-symlink.sh
@@ -39,4 +39,6 @@ if test "$(df --output=source | grep -F "$disk" | wc -l)" = 1; then
compare exp out || fail=1
fi
+test "$fail" = 1 && dump_mount_list_
+
Exit $fail
diff --git a/tests/df/over-mount-device.sh b/tests/df/over-mount-device.sh
index eb8af9291..479d36d66 100755
--- a/tests/df/over-mount-device.sh
+++ b/tests/df/over-mount-device.sh
@@ -54,4 +54,6 @@ test $(wc -l < out) = 2 || fail=1
compare exp err || fail=1
+test "$fail" = 1 && dump_mount_list_
+
Exit $fail
diff --git a/tests/df/problematic-chars.sh b/tests/df/problematic-chars.sh
index 2020a12e1..59ee0556b 100755
--- a/tests/df/problematic-chars.sh
+++ b/tests/df/problematic-chars.sh
@@ -41,4 +41,6 @@ test $skip = 1 \
test $(df "$mnt" | wc -l) = 2 || fail=1
+test "$fail" = 1 && dump_mount_list_
+
Exit $fail
diff --git a/tests/df/skip-rootfs.sh b/tests/df/skip-rootfs.sh
index e79d4244f..c89314427 100755
--- a/tests/df/skip-rootfs.sh
+++ b/tests/df/skip-rootfs.sh
@@ -48,4 +48,6 @@ grep '^rootfs' out || { fail=1; cat out; }
df -a -x rootfs >out || fail=1
grep '^rootfs' out && { fail=1; cat out; }
+test "$fail" = 1 && dump_mount_list_
+
Exit $fail
diff --git a/tests/df/total-verify.sh b/tests/df/total-verify.sh
index d0b2b7be8..79722e493 100755
--- a/tests/df/total-verify.sh
+++ b/tests/df/total-verify.sh
@@ -62,4 +62,6 @@ cat inode
$PERL check-df space || fail=1
$PERL check-df inode || fail=1
+test "$fail" = 1 && dump_mount_list_
+
Exit $fail
diff --git a/tests/df/unreadable.sh b/tests/df/unreadable.sh
index c1c990fe8..c5754724a 100755
--- a/tests/df/unreadable.sh
+++ b/tests/df/unreadable.sh
@@ -24,4 +24,6 @@ touch unreadable || fail=1
chmod a-r unreadable || fail=1
df unreadable || fail=1
+test "$fail" = 1 && dump_mount_list_
+
Exit $fail