diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-09-02 13:22:41 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2010-09-07 10:49:55 +0100 |
commit | 437671accc0af8fa43a3f9bda6c150cb63fc42cb (patch) | |
tree | 170c21e6db5b8055281f95285acc9e2c9b29ba75 /tests/install | |
parent | 0e295c88bccb7fe8aedbbcf1798fdfa8f6beec88 (diff) | |
download | coreutils-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/install')
-rwxr-xr-x | tests/install/basic-1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/install/basic-1 b/tests/install/basic-1 index 80c72d933..7ea103b28 100755 --- a/tests/install/basic-1 +++ b/tests/install/basic-1 @@ -105,7 +105,7 @@ test -d xx/rel && fail=1 # inaccessible parent. coreutils 5.97 fails this test. # Perform this test only if "." is on a local file system. # Otherwise, it would fail e.g., on an NFS-mounted file system. -if df --local . >/dev/null 2>&1; then +if is_local_dir_ .; then mkdir -p sub1/d || fail=1 (cd sub1/d && chmod a-r . && chmod a-rx .. && ginstall -d "$iwd/xx/zz" rel/a rel/b) || fail=1 |