mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
tests/nixos: Work around network-online.target inactivity
(cherry picked from commit 58b657b976
)
This commit is contained in:
parent
36f23279bf
commit
f5731aa9a2
10 changed files with 20 additions and 20 deletions
|
@ -70,9 +70,9 @@ in
|
|||
server.copy_from_host("key.pub", "/root/.ssh/authorized_keys")
|
||||
server.wait_for_unit("sshd")
|
||||
server.wait_for_unit("multi-user.target")
|
||||
server.wait_for_unit("network-online.target")
|
||||
server.wait_for_unit("network-addresses-eth1.service")
|
||||
|
||||
client.wait_for_unit("network-online.target")
|
||||
client.wait_for_unit("network-addresses-eth1.service")
|
||||
client.succeed(f"ssh -o StrictHostKeyChecking=no {server.name} 'echo hello world'")
|
||||
|
||||
# Copy the closure of package A from the client to the server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue