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.
This commit is contained in:
Luca Boccassi 2020-12-22 17:51:40 +00:00
parent 0515e4c17d
commit aeac20fc69
1 changed files with 5 additions and 0 deletions

View File

@ -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