From: Yu Watanabe Date: Wed, 3 Sep 2025 18:21:45 +0000 (+0900) Subject: TEST-07-PID1: add test cases for mask/unmask unit X-Git-Tag: v258-rc4~18^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F38810%2Fhead;p=thirdparty%2Fsystemd.git TEST-07-PID1: add test cases for mask/unmask unit For issue #38802. --- diff --git a/test/units/TEST-07-PID1.mask.sh b/test/units/TEST-07-PID1.mask.sh new file mode 100755 index 00000000000..33c74f0011b --- /dev/null +++ b/test/units/TEST-07-PID1.mask.sh @@ -0,0 +1,90 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -eux +set -o pipefail + +at_exit() { + set +e + + systemctl stop mask-test.service + rm -rf /run/systemd/system/mask-test.service* + systemctl daemon-reload + + rm -f /tmp/should-not-exist-by-* +} + +trap at_exit EXIT + +rm -f /tmp/should-not-exist-by-* + +mkdir -p /run/systemd/system/mask-test.service.d + +cat >/run/systemd/system/mask-test.service </run/systemd/system/mask-test.service.d/10-stop.conf <