mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-09 12:58:38 +03:00
libtest: Allow skipping single checks without user xattrs
Signed-off-by: Simon McVittie <smcv@debian.org> Closes: #1120 Approved by: cgwalters
This commit is contained in:
parent
1d755977c8
commit
a7686a0c40
@ -511,6 +511,17 @@ os_repository_new_commit ()
|
||||
cd ${test_tmpdir}
|
||||
}
|
||||
|
||||
# Usage: if ! skip_one_without_user_xattrs; then ... more tests ...; fi
|
||||
skip_one_without_user_xattrs () {
|
||||
touch test-xattrs
|
||||
if ! setfattr -n user.testvalue -v somevalue test-xattrs; then
|
||||
echo "ok # SKIP - this test requires xattr support"
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
skip_without_user_xattrs () {
|
||||
touch test-xattrs
|
||||
setfattr -n user.testvalue -v somevalue test-xattrs || \
|
||||
|
Loading…
x
Reference in New Issue
Block a user