test-xattrs: sync how this is skipped with test-rofiles-fuse

If we touch test-xattrs before sourcing libtest.sh, we get:

test tmpdir=/tmp/test-tmp-ostree_test-xattrs.sh.test-HSEXEY is not
empty; run this test via `make check TESTS=`, not directly

Signed-off-by: Simon McVittie <smcv@debian.org>

Closes: #234
Approved by: cgwalters
This commit is contained in:
Simon McVittie 2016-03-31 17:47:36 +01:00 committed by Colin Walters (automation)
parent 839628b3fa
commit 9c4babf316

View File

@ -19,16 +19,12 @@
set -euo pipefail
touch test-xattrs
if ! setfattr -n user.testvalue -v somevalue test-xattrs; then
echo "1..0 # SKIP: cannot run setfattr"
exit 0
fi
. $(dirname $0)/libtest.sh
skip_without_user_xattrs
echo "1..2"
. $(dirname $0)/libtest.sh
setup_test_repository "archive-z2"
cd ${test_tmpdir}