summaryrefslogtreecommitdiff
path: root/tests/dd/skip-seek-past-dev
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-09-02 13:22:41 +0100
committerPádraig Brady <P@draigBrady.com>2010-09-07 10:49:55 +0100
commit437671accc0af8fa43a3f9bda6c150cb63fc42cb (patch)
tree170c21e6db5b8055281f95285acc9e2c9b29ba75 /tests/dd/skip-seek-past-dev
parent0e295c88bccb7fe8aedbbcf1798fdfa8f6beec88 (diff)
downloadcoreutils-437671accc0af8fa43a3f9bda6c150cb63fc42cb.tar.xz
tests: exclude some tests when running on NFS
All tests currently pass on NFS on Linux kernel 2.6.22 at least, but some fail on 2.6.9, so we exclude those here. * tests/init.cfg (is_local_dir_): A new function returning if the specified directory is on a local file system. (require_local_dir_): A new function to skip tests if the current directory is not on a local file system. * tests/cp/existing-perm-race: Skip if non local. * tests/cp/file-perm-race: Likewise. * tests/cp/parent-perm: Likewise. * tests/cp/parent-perm-race: Likewise. * tests/cp/preserve-2: Likewise. * tests/mv/part-symlink: Likewise. * tests/du/basic: Use refactored function. * tests/install/basic-1: Likewise. * tests/mkdir/p-3: Likewise. * tests/dd/skip-seek-past-dev: Likewise. * tests/du/slink: Likewise. Remove redundant test for NFS file system. * tests/misc/join: s/local/locale/.
Diffstat (limited to 'tests/dd/skip-seek-past-dev')
-rwxr-xr-xtests/dd/skip-seek-past-dev6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dd/skip-seek-past-dev b/tests/dd/skip-seek-past-dev
index c5b7aab30..9e910e8ee 100755
--- a/tests/dd/skip-seek-past-dev
+++ b/tests/dd/skip-seek-past-dev
@@ -23,9 +23,10 @@ fi
. $srcdir/test-lib.sh
-# need write access to device
+# need write access to local device
# (even though we don't actually write anything)
require_root_
+require_local_dir_
get_device_size() {
BLOCKDEV=blockdev
@@ -36,8 +37,7 @@ get_device_size() {
# Get path to device the current dir is on.
# Note df can only get fs size, not device size.
-device=$(df -P --local . | tail -n1 | cut -d' ' -f1) ||
- skip_test_ 'this test runs only on local file systems'
+device=$(df -P . | tail -n1 | cut -d' ' -f1) || framework_failure
dev_size=$(get_device_size "$device") ||
skip_test_ "failed to determine size of $device"