From: Frantisek Sumsal Date: Wed, 16 Feb 2022 19:29:14 +0000 (+0100) Subject: test: make masking of supplementary services configurable X-Git-Tag: v252-rc1~793^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508a7f04b345878dcd8365ff0ded5f87b18d75fa;p=thirdparty%2Fsystemd.git test: make masking of supplementary services configurable --- diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh index a790cd78ac0..cc6d0651c14 100755 --- a/test/TEST-01-BASIC/test.sh +++ b/test/TEST-01-BASIC/test.sh @@ -6,6 +6,7 @@ TEST_DESCRIPTION="Basic systemd setup" IMAGE_NAME="basic" RUN_IN_UNPRIVILEGED_CONTAINER=${RUN_IN_UNPRIVILEGED_CONTAINER:-yes} TEST_REQUIRE_INSTALL_TESTS=0 +TEST_SUPPORTING_SERVICES_SHOULD_BE_MASKED=0 # shellcheck source=test/test-functions . "${TEST_BASE_DIR:?}/test-functions" diff --git a/test/test-functions b/test/test-functions index b3844f246c6..ae1d0aff622 100644 --- a/test/test-functions +++ b/test/test-functions @@ -40,6 +40,7 @@ IMAGE_NAME=${IMAGE_NAME:-default} STRIP_BINARIES="${STRIP_BINARIES:-yes}" TEST_REQUIRE_INSTALL_TESTS="${TEST_REQUIRE_INSTALL_TESTS:-1}" TEST_PARALLELIZE="${TEST_PARALLELIZE:-0}" +TEST_SUPPORTING_SERVICES_SHOULD_BE_MASKED="${TEST_SUPPORTING_SERVICES_SHOULD_BE_MASKED:-1}" LOOPDEV= # Simple wrapper to unify boolean checks. @@ -2934,9 +2935,8 @@ test_setup() { fi mount_initdir - # We want to test all services in TEST-01-BASIC, but mask them in - # all other tests - if [[ "${TESTID:?}" != "01" ]]; then + + if get_bool "${TEST_SUPPORTING_SERVICES_SHOULD_BE_MASKED}"; then dinfo "Masking supporting services" mask_supporting_services fi