tests: exclude some tests when running on NFS
commit437671accc0af8fa43a3f9bda6c150cb63fc42cb
authorPádraig Brady <P@draigBrady.com>
Thu, 2 Sep 2010 12:22:41 +0000 (2 13:22 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 7 Sep 2010 09:49:55 +0000 (7 10:49 +0100)
tree170c21e6db5b8055281f95285acc9e2c9b29ba75
parent0e295c88bccb7fe8aedbbcf1798fdfa8f6beec88
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/.
13 files changed:
tests/cp/existing-perm-race
tests/cp/file-perm-race
tests/cp/parent-perm
tests/cp/parent-perm-race
tests/cp/preserve-2
tests/dd/skip-seek-past-dev
tests/du/basic
tests/du/slink
tests/init.cfg
tests/install/basic-1
tests/misc/join
tests/mkdir/p-3
tests/mv/part-symlink