From 759bfaa0f4dfaf0d00cc0b567d5e6ef6b7878221 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 31 May 2016 09:18:08 +0200 Subject: [PATCH] tests: Only skip tests if no xattrs in /var/tmp We explicitly put the checkouts in /var/tmp to avoid the common case of /tmp being tmpfs and not supporting xattrs. --- tests/libtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libtest.sh b/tests/libtest.sh index f074827c9..26908c771 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -197,8 +197,8 @@ run_sh () { } skip_without_user_xattrs () { - touch test-xattrs - if ! setfattr -n user.testvalue -v somevalue test-xattrs; then + touch ${TEST_DATA_DIR}/test-xattrs + if ! setfattr -n user.testvalue -v somevalue ${TEST_DATA_DIR}/test-xattrs; then echo "1..0 # SKIP this test requires xattr support" exit 0 fi