mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-12 02:51:12 -04:00
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:
@@ -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
|
||||
|
||||
@@ -22,6 +22,7 @@ set -euo pipefail
|
||||
. $(dirname $0)/libtest.sh
|
||||
|
||||
skip_without_bwrap
|
||||
skip_without_user_xattrs
|
||||
|
||||
echo "1..3"
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ set -euo pipefail
|
||||
. $(dirname $0)/libtest.sh
|
||||
|
||||
skip_without_bwrap
|
||||
skip_without_user_xattrs
|
||||
|
||||
echo "1..7"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user