mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
TEST-03-JOBS: add test for TransactionsWithOrderingCycle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user