Fix nix-copy test

This commit is contained in:
Robert Hensing 2023-08-14 14:28:02 +02:00 committed by John Ericson
parent 3384f70a3d
commit be3362e747

View file

@ -1,4 +1,6 @@
# Test that nix copy works over ssh. # Test that nix copy works over ssh.
# Run interactively with:
# rm key key.pub; nix run .#hydraJobs.tests.nix-copy.driverInteractive
{ lib, config, nixpkgs, hostPkgs, ... }: { lib, config, nixpkgs, hostPkgs, ... }:
@ -55,7 +57,9 @@ in {
server.wait_for_unit("sshd") server.wait_for_unit("sshd")
client.wait_for_unit("network.target") client.wait_for_unit("network.target")
client.wait_for_unit("getty@tty1.service") client.wait_for_unit("getty@tty1.service")
client.wait_for_text("]#") # Either the prompt: ]#
# or an OCR misreading of it: 1#
client.wait_for_text("[]1]#")
# Copy the closure of package A from the client to the server using password authentication, # Copy the closure of package A from the client to the server using password authentication,
# and check that all prompts are visible # and check that all prompts are visible