From: Daan De Meyer Date: Mon, 3 Mar 2025 11:33:56 +0000 (+0100) Subject: test: Disable status messages when we start running a test X-Git-Tag: v257.4~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b629b7100e83e2382be12869cb672c53e1ebe8e3;p=thirdparty%2Fsystemd.git test: Disable status messages when we start running a test As soon as we start running a test, we want pid 1 to stop showing status messages so let's tell pid 1 to stop showing status messages. (cherry picked from commit 070de658a9f2bf48d26035ddbe861f79dfff2be4) --- diff --git a/test/integration-test-setup.sh b/test/integration-test-setup.sh index c67f938acf2..e09e0dddef4 100755 --- a/test/integration-test-setup.sh +++ b/test/integration-test-setup.sh @@ -5,6 +5,8 @@ set -o pipefail case "$1" in setup) + busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager SetShowStatus s no + if [[ -f "$STATE_DIRECTORY/inprogress" ]]; then exit 0 fi @@ -46,6 +48,8 @@ case "$1" in touch "$STATE_DIRECTORY/inprogress" ;; finalize) + busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager SetShowStatus s auto + # If we're rebooting, the test does a reboot as part of its execution and we shouldn't remove /inprogress. if ! [[ "$(systemctl list-jobs)" =~ reboot.target|kexec.target|soft-reboot.target ]]; then rm -f "$STATE_DIRECTORY/inprogress"