From aeac20fc69e3c0fa5c3f0a15ecff6b0864afa628 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 22 Dec 2020 17:51:40 +0000 Subject: [PATCH] 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. --- test/test-functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test-functions b/test/test-functions index 1359156b17..52331d7845 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