]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: stop the test unit when it's not needed anymore
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 14 Apr 2023 19:10:18 +0000 (21:10 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 14 Apr 2023 19:13:14 +0000 (21:13 +0200)
Otherwise it keeps printing stuff to the journal/console, adding
unnecessary noise.

test/units/testsuite-04.sh

index b7cbfeb75a32748b09ac695cb8de390f45404fa5..35d35c0e8503762dda47e8c7cb7de00a2c9ddd22 100755 (executable)
@@ -175,6 +175,7 @@ sleep 3
 systemctl kill --signal=SIGKILL systemd-journald
 sleep 3
 [[ ! -f "/i-lose-my-logs" ]]
+systemctl stop forever-print-hola
 
 # https://github.com/systemd/systemd/issues/15528
 journalctl --follow --file=/var/log/journal/*/* | head -n1 || [[ $? -eq 1 ]]