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.
tingping/wmclass
Alexander Larsson 2016-05-31 09:18:08 +02:00
parent f8ae525ce8
commit 759bfaa0f4
1 changed files with 2 additions and 2 deletions

View File

@ -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