[ostree: 33/70] test-xattrs: sync how this is skipped with test-rofiles-fuse
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree: 33/70] test-xattrs: sync how this is skipped with test-rofiles-fuse
- Date: Fri, 15 Apr 2016 21:04:01 +0000 (UTC)
commit 9c4babf316cfbfad61cfcd0ab8fd5e77e9df13be
Author: Simon McVittie <smcv debian org>
Date: Thu Mar 31 17:47:36 2016 +0100
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
tests/test-xattrs.sh | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/tests/test-xattrs.sh b/tests/test-xattrs.sh
index 2f2d99c..cdc06e8 100755
--- a/tests/test-xattrs.sh
+++ b/tests/test-xattrs.sh
@@ -19,15 +19,11 @@
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
-echo "1..2"
+skip_without_user_xattrs
-. $(dirname $0)/libtest.sh
+echo "1..2"
setup_test_repository "archive-z2"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]