]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-03-JOBS: add test for TransactionsWithOrderingCycle 39210/head
authorMike Yuan <me@yhndnzj.com>
Wed, 12 Nov 2025 21:46:40 +0000 (22:46 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 12 Nov 2025 22:47:39 +0000 (23:47 +0100)
test/units/TEST-03-JOBS.sh

index 719c16b986ad36f37950079d1f8df2e60d6f4b03..4b8b67bd57d1c0aca4d6b6bf01748a36a7d7fc1f 100755 (executable)
@@ -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