From 397681405a2d6fadda744029bb6ab94f076ae6db Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 12 Nov 2025 22:46:40 +0100 Subject: [PATCH] TEST-03-JOBS: add test for TransactionsWithOrderingCycle --- test/units/TEST-03-JOBS.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/units/TEST-03-JOBS.sh b/test/units/TEST-03-JOBS.sh index 719c16b986a..4b8b67bd57d 100755 --- a/test/units/TEST-03-JOBS.sh +++ b/test/units/TEST-03-JOBS.sh @@ -124,6 +124,13 @@ for i in {0..19}; do systemctl start "transaction-cycle$i.service" done +IDS_FILE="/tmp/TEST-03-JOBS-CYCLE-IDS-$RANDOM" +varlinkctl call /run/systemd/io.systemd.Manager io.systemd.Manager.Describe '{}' | jq '.runtime.TransactionsWithOrderingCycle' >"$IDS_FILE" +[[ "$(jq length "$IDS_FILE")" -ge 20 ]] +for i in {0..19}; do + journalctl -b TRANSACTION_ID="$(jq -r ".[$i]" "$IDS_FILE")" --grep "cycle starting with" +done + # Test PropagatesStopTo= when restart (issue #26839) systemctl start propagatestopto-and-pullin.target systemctl --quiet is-active propagatestopto-and-pullin.target -- 2.47.3