Skip to content

Commit b629b71

Browse files
DaanDeMeyerbluca
authored andcommitted
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 070de65)
1 parent 3e47445 commit b629b71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/integration-test-setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ set -o pipefail
55

66
case "$1" in
77
setup)
8+
busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager SetShowStatus s no
9+
810
if [[ -f "$STATE_DIRECTORY/inprogress" ]]; then
911
exit 0
1012
fi
@@ -46,6 +48,8 @@ case "$1" in
4648
touch "$STATE_DIRECTORY/inprogress"
4749
;;
4850
finalize)
51+
busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager SetShowStatus s auto
52+
4953
# If we're rebooting, the test does a reboot as part of its execution and we shouldn't remove /inprogress.
5054
if ! [[ "$(systemctl list-jobs)" =~ reboot.target|kexec.target|soft-reboot.target ]]; then
5155
rm -f "$STATE_DIRECTORY/inprogress"

0 commit comments

Comments
 (0)