From 448e99251aa47a5986425a1783da44d1200fe733 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 27 Jan 2025 22:24:16 +0900 Subject: [PATCH] TEST-07-PID1: add reprudcer for issue #35190 --- test/units/TEST-07-PID1.transient.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test/units/TEST-07-PID1.transient.sh diff --git a/test/units/TEST-07-PID1.transient.sh b/test/units/TEST-07-PID1.transient.sh new file mode 100755 index 00000000000..ae71a381434 --- /dev/null +++ b/test/units/TEST-07-PID1.transient.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -ex +set -o pipefail + +journalctl --sync +TS="$(date '+%H:%M:%S')" + +systemd-run -u hogehoge.service sleep infinity +systemctl daemon-reload +systemctl stop hogehoge.service + +journalctl --sync +[[ -z "$(journalctl -b -q --since "$TS" -u hogehoge.service -p notice)" ]]