mirror of
https://github.com/NixOS/nix
synced 2025-07-19 10:39:38 +02:00
tests: Wait for network *online* and multi-user targets
This should help prevent some test stalls.
By default, multi-user.target does not imply that the network is fully up.
(cherry picked from commit 15073e86a8
)
This commit is contained in:
parent
8e87c19125
commit
8b205302f3
5 changed files with 17 additions and 5 deletions
|
@ -56,7 +56,10 @@ in {
|
|||
start_all()
|
||||
|
||||
server.wait_for_unit("sshd")
|
||||
client.wait_for_unit("network.target")
|
||||
server.wait_for_unit("multi-user.target")
|
||||
server.wait_for_unit("network-online.target")
|
||||
|
||||
client.wait_for_unit("network-online.target")
|
||||
client.wait_for_unit("getty@tty1.service")
|
||||
# Either the prompt: ]#
|
||||
# or an OCR misreading of it: 1#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue