mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
test: make masking of supplementary services configurable
This commit is contained in:
parent
e83cfbf972
commit
508a7f04b3
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user