From: Evgeny Vereshchagin Date: Wed, 30 Dec 2015 03:33:43 +0000 (+0000) Subject: tests: add regression test for `systemctl restart systemd-journald` X-Git-Tag: v229~166^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2243%2Fhead;p=thirdparty%2Fsystemd.git tests: add regression test for `systemctl restart systemd-journald` See https://github.com/systemd/systemd/issues/2236 --- diff --git a/test/TEST-04-JOURNAL/test-journal.sh b/test/TEST-04-JOURNAL/test-journal.sh index 1ee39df432d..3a05619ad5c 100755 --- a/test/TEST-04-JOURNAL/test-journal.sh +++ b/test/TEST-04-JOURNAL/test-journal.sh @@ -51,5 +51,13 @@ journalctl --sync journalctl -b -o cat -t "$ID" >/output cmp /expected /output +# Don't lose streams on restart +systemctl start forever-print-hola +sleep 3 +systemctl restart systemd-journald +sleep 3 +systemctl stop forever-print-hola +[[ ! -f "/i-lose-my-logs" ]] + touch /testok exit 0 diff --git a/test/TEST-04-JOURNAL/test.sh b/test/TEST-04-JOURNAL/test.sh index 6c5b5cf34ee..1a14f76060d 100755 --- a/test/TEST-04-JOURNAL/test.sh +++ b/test/TEST-04-JOURNAL/test.sh @@ -55,6 +55,15 @@ After=multi-user.target [Service] ExecStart=/test-journal.sh Type=oneshot +EOF + + cat >$initdir/etc/systemd/system/forever-print-hola.service <