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.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/df/skip-rootfs.sh b/tests/df/skip-rootfs.sh
index a3b68e9b2..43ba70b43 100755
--- a/tests/df/skip-rootfs.sh
+++ b/tests/df/skip-rootfs.sh
@@ -19,7 +19,8 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ df
-df || skip_ "df fails"
+# Protect against inaccessible remote mounts etc.
+timeout 10 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