From: Luca Boccassi Date: Tue, 22 Dec 2020 17:51:40 +0000 (+0000) Subject: test: shortcut skip if both TEST_NO_QEMU and TEST_NO_NSPAWN are set X-Git-Tag: v248-rc1~433^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeac20fc69e3c0fa5c3f0a15ecff6b0864afa628;p=thirdparty%2Fsystemd.git test: shortcut skip if both TEST_NO_QEMU and TEST_NO_NSPAWN are set Allows to run all tests in bulk with TEST_NO_QEMU, skipping those where it is mandatory, without wasting time building the image. --- diff --git a/test/test-functions b/test/test-functions index 1359156b17a..52331d78456 100644 --- a/test/test-functions +++ b/test/test-functions @@ -2107,6 +2107,11 @@ do_test() { exit 0 fi + if [ -n "$TEST_NO_QEMU" ] && [ -n "$TEST_NO_NSPAWN" ]; then + echo "TEST: $TEST_DESCRIPTION [SKIPPED]: both QEMU and nspawn disabled" >&2 + exit 0 + fi + # Detect lib paths [[ $libdir ]] || for libdir in /lib64 /lib; do [[ -d $libdir ]] && libdirs+=" $libdir" && break