From: Alex Kiernan Date: Thu, 24 Oct 2019 18:07:30 +0000 (+0100) Subject: tests/export: Guard with check for libarchive X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~14^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e314b31ec90ec4fbd4a2d9c2eca55383e7ed4a9a;p=ostree.git tests/export: Guard with check for libarchive If we are built without libarchive support, this test fails: error: This version of ostree is not compiled with libarchive support ... ERROR: tests/test-export.sh - too few tests run (expected 5, got 0) ERROR: tests/test-export.sh - exited with status 1 Signed-off-by: Alex Kiernan --- diff --git a/tests/test-export.sh b/tests/test-export.sh index e1a0346c..17f7c024 100755 --- a/tests/test-export.sh +++ b/tests/test-export.sh @@ -21,6 +21,11 @@ set -euo pipefail +if ! ostree --version | grep -q -e '- libarchive'; then + echo "1..0 #SKIP no libarchive support compiled in" + exit 0 +fi + . $(dirname $0)/libtest.sh setup_test_repository "archive"