Skip tests that make a repository if /var/tmp lacks user xattrs

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie committed 2016-05-23 23:00:37 +01:00
1 parent d6593d65e6
commit a461eb50fa
3 files changed
+10

No files matched your search

+8
View File
@@ -196,6 +196,14 @@ run_sh () {
${CMD_PREFIX} flatpak run --command=bash ${ARGS-} org.test.Hello -c "$*"
}
skip_without_user_xattrs () {
touch test-xattrs
if ! setfattr -n user.testvalue -v somevalue test-xattrs; then
echo "1..0 # SKIP this test requires xattr support"
exit 0
fi
}
skip_without_bwrap () {
if [ -z "${FLATPAK_BWRAP:-}" ]; then
# running installed-tests: assume we know what we're doing
+1
View File
@@ -22,6 +22,7 @@ set -euo pipefail
. $(dirname $0)/libtest.sh
skip_without_bwrap
skip_without_user_xattrs
echo "1..3"
+1
View File
@@ -22,6 +22,7 @@ set -euo pipefail
. $(dirname $0)/libtest.sh
skip_without_bwrap
skip_without_user_xattrs
echo "1..7"