summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-01-16 13:53:48 +0000
committerPádraig Brady <P@draigBrady.com>2016-01-16 13:53:48 +0000
commitfa9ae62a9ee2bbdf85f30b288f41101c0c890238 (patch)
tree9fb577a5bdbae75fba44eed3e3e28dd60675b22c /init.cfg
parent2a5494271c3ffa371cdc8773cd12682f3d5c678f (diff)
downloadcoreutils-fa9ae62a9ee2bbdf85f30b288f41101c0c890238.tar.xz
tests: show mount list on failure for df tests
* init.cfg (dump_mount_list_): A new function to output the system mount list. * tests/df/df-symlink.sh: Call dump_mount_list_ upon failure. * tests/df/over-mount-device.sh: Likewise. * tests/df/problematic-chars.sh: Likewise. * tests/df/skip-rootfs.sh: Likewise. * tests/df/total-verify.sh: Likewise. * tests/df/unreadable.sh: Likewise.
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.cfg b/init.cfg
index 108fd206b..db861944c 100644
--- a/init.cfg
+++ b/init.cfg
@@ -92,6 +92,14 @@ require_mount_list_()
skip_ "$mount_list_fail"
}
+dump_mount_list_()
+{
+ cat /proc/self/mountinfo ||
+ cat /proc/self/mounts ||
+ cat /proc/mounts ||
+ cat /etc/mtab
+}
+
require_local_dir_()
{
require_mount_list_