summaryrefslogtreecommitdiff
path: root/tests/df/skip-rootfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/df/skip-rootfs.sh')
-rwxr-xr-xtests/df/skip-rootfs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/df/skip-rootfs.sh b/tests/df/skip-rootfs.sh
index 9bb142406..ed5364eb3 100755
--- a/tests/df/skip-rootfs.sh
+++ b/tests/df/skip-rootfs.sh
@@ -22,8 +22,10 @@ print_ver_ df
df || skip_ "df fails"
# Verify that rootfs is in mtab (and shown when the -a option is specified).
+# Note this is the case when /proc/self/mountinfo is parsed
+# rather than /proc/mounts. I.E. when libmount is being used.
df -a >out || fail=1
-grep '^rootfs' out || skip_ "no rootfs in mtab"
+grep '^rootfs' out || skip_ 'no rootfs in mtab'
# Ensure that rootfs is suppressed when no options is specified.
df >out || fail=1