tests: Use skip_without_ostree_feature to detect libarchive, composefs
authorSimon McVittie <smcv@collabora.com>
Mon, 19 Feb 2024 16:07:13 +0000 (16:07 +0000)
committerSimon McVittie <smcv@collabora.com>
Mon, 19 Feb 2024 21:01:07 +0000 (21:01 +0000)
commit37466ec35be98c9c79abd34c7a5bb52a21dec010
treeac72d5b2e37a7bc8729cc4b2c7acbd6a9ad257d5
parenta84e56d60383729a1e503995e5d2d692ad2a9bc4
tests: Use skip_without_ostree_feature to detect libarchive, composefs

This avoids false negatives from `ostree --version | grep -q ...`
exiting with failure under `set -o pipefail` because `grep -q` can exit
as soon as it sees the desired string, leaving `ostree --version` to be
terminated by `SIGPIPE` next time it writes to stdout.

Signed-off-by: Simon McVittie <smcv@collabora.com>
tests/test-composefs.sh
tests/test-export.sh
tests/test-libarchive.sh