mirror of
https://github.com/systemd/systemd.git
synced 2026-08-12 22:17:19 +00:00
test: wait systemd to finish reexec in TEST-74-AUX-UTILS.varlinkctl.sh
(cherry picked from commit e86b49473f)
This commit is contained in:
committed by
Luca Boccassi
parent
3681e5fb50
commit
7c39452031
@@ -204,6 +204,14 @@ varlinkctl call /run/systemd/io.systemd.Manager io.systemd.Manager.Describe '{}'
|
||||
varlinkctl call /run/systemd/io.systemd.Manager io.systemd.Manager.Reload '{}'
|
||||
# This will disconnect and fail, as the manager reexec and drops connections
|
||||
varlinkctl call /run/systemd/io.systemd.Manager io.systemd.Manager.Reexecute '{}' ||:
|
||||
# Wait for the manager to finish re-exec before proceeding — the user manager
|
||||
# tests below use systemd-run which requires a functional PID 1.
|
||||
for _ in {1..10}; do
|
||||
if systemctl is-system-running 2>/dev/null | grep -qE 'running|degraded'; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
|
||||
# test io.systemd.Network
|
||||
varlinkctl info /run/systemd/netif/io.systemd.Network
|
||||
|
||||
Reference in New Issue
Block a user