From: Mike Yuan Date: Wed, 12 Nov 2025 21:46:40 +0000 (+0100) Subject: TEST-03-JOBS: add test for TransactionsWithOrderingCycle X-Git-Tag: v259-rc1~68^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=397681405a2d6fadda744029bb6ab94f076ae6db;p=thirdparty%2Fsystemd.git TEST-03-JOBS: add test for TransactionsWithOrderingCycle --- 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