diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-04-05 18:21:38 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-04-13 09:20:55 +0100 |
commit | 1b1c40e1d6f8cf30b6c7c9d31bbddbc3d5cc72e6 (patch) | |
tree | b6f887d9e98343fc3e0389de18dc7b4abc30b51e /tests/df/skip-rootfs.sh | |
parent | 74bf6670eb54377f3aec98ef24a3b5f45e3ac554 (diff) | |
download | coreutils-1b1c40e1d6f8cf30b6c7c9d31bbddbc3d5cc72e6.tar.xz |
df: fix --local hanging with inaccessible remote mounts
* src/df.c (filter_mount_list): With -l, avoid stating remote mounts.
* init.cfg: Avoid test hangs with inaccessible remote mounts.
* tests/df/no-mtab-status.sh: Skip with inaccessible remote mounts.
* tests/df/skip-rootfs.sh: Likewise.
* tests/df/total-verify.sh: Likewise.
* NEWS: Mention the bug fix.
Reported at http://bugzilla.redhat.com/1199679
Diffstat (limited to 'tests/df/skip-rootfs.sh')
-rwxr-xr-x | tests/df/skip-rootfs.sh | 3 |
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 |