From b629b7100e83e2382be12869cb672c53e1ebe8e3 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 3 Mar 2025 12:33:56 +0100 Subject: [PATCH] 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) --- test/integration-test-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) 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" -- 2.47.3