summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca BRUNO <luca.bruno@coreos.com>2021-08-30 15:55:16 +0000
committerLuca BRUNO <luca.bruno@coreos.com>2021-09-06 07:52:42 +0000
commitfff24089ddc5893140b9a73fd8ea260df07172fe (patch)
treeeb7def547b01ae86870e87c40d6b7b66e7701a52
parentaa0bb176c5847b3bc7096904c6b0e978d119c2fa (diff)
downloadostree-fff24089ddc5893140b9a73fd8ea260df07172fe.tar.gz
tests: skip a broken fsck case
There are some existing issues around fsck in unprivileged bare mode, so this test does not really work at the moment. Leaving it as a FIXME for the moment.
-rw-r--r--tests/basic-test.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/basic-test.sh b/tests/basic-test.sh
index 29ca6109..850a7605 100644
--- a/tests/basic-test.sh
+++ b/tests/basic-test.sh
@@ -793,7 +793,10 @@ rm files -rf && mkdir files
mkdir files/worldwritable-dir
chmod a+w files/worldwritable-dir
$OSTREE commit ${COMMIT_ARGS} -b content-with-dir-world-writable --tree=dir=files
-$OSTREE fsck
+# FIXME(lucab): this seems to fail in unprivileged bare mode.
+if ! have_selinux_relabel; then
+ $OSTREE fsck
+fi
rm dir-co -rf
$OSTREE checkout -U -H -M content-with-dir-world-writable dir-co
if is_bare_user_only_repo repo; then