diff options
-rwxr-xr-x | tests/du.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/du.test b/tests/du.test index a0960743..ae610256 100755 --- a/tests/du.test +++ b/tests/du.test @@ -2,6 +2,15 @@ [ -f testing.sh ] && . testing.sh +# ext stores extended attributes in a way that makes all the numbers in the +# tests below incorrect. +# TODO: include a read-only ext file system that we can mount for the tests? +if [ "$(stat --format %C . 2>/dev/null)" != "?" ]; then + echo "$SHOWSKIP: du (SELinux extended attributes present)" + return 2>/dev/null + exit +fi + #testing "name" "command" "result" "infile" "stdin" # we only test with -k since getting POSIX version is variable |