summaryrefslogtreecommitdiff
path: root/tests/df/total-unprocessed
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-08-08 16:38:38 +0100
committerPádraig Brady <P@draigBrady.com>2012-08-08 17:46:58 +0100
commit433de5ebbddce4c2179fa37296ca9b39400f99ed (patch)
treebb2936ad165dff5cb1ece22e4149ba9511b077da /tests/df/total-unprocessed
parent1bacb4bca688afa2a4756b954787dcf54d5e6e46 (diff)
downloadcoreutils-433de5ebbddce4c2179fa37296ca9b39400f99ed.tar.xz
tests: fix validation of local file systems
* tests/init.cfg (require_mount_list_): A new function to ensure we can read the list of file systems. (require_local_dir_): Call the above function, as otherwise the check is invalid. * tests/df/total-unprocessed: Ensure df can read the list of mounted file systems so that --local can be honored.
Diffstat (limited to 'tests/df/total-unprocessed')
-rwxr-xr-xtests/df/total-unprocessed3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/df/total-unprocessed b/tests/df/total-unprocessed
index 9742591f7..aa4983683 100755
--- a/tests/df/total-unprocessed
+++ b/tests/df/total-unprocessed
@@ -19,6 +19,7 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ df
+require_mount_list_
cat <<\EOF > exp || framework_failure_
df: no file systems processed
@@ -27,7 +28,7 @@ EOF
# The following simply finds no match for the combination
# of the options --local and FS-type nfs together with the
# argument ".". It must exit non-Zero nonetheless.
-df --local -t nfs --total "." 2>out && fail=1
+df --local -t nfs --total '.' 2>out && fail=1
compare exp out || fail=1
cat <<\EOF > exp || framework_failure_