mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
Merge pull request #11831 from DeterminateSystems/fix-nix-copy-test
Fix 'nix copy' VM test
This commit is contained in:
commit
0ed5af164f
@ -37,6 +37,7 @@ in {
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{ services.openssh.enable = true;
|
{ services.openssh.enable = true;
|
||||||
services.openssh.settings.PermitRootLogin = "yes";
|
services.openssh.settings.PermitRootLogin = "yes";
|
||||||
|
users.users.root.hashedPasswordFile = null;
|
||||||
users.users.root.password = "foobar";
|
users.users.root.password = "foobar";
|
||||||
virtualisation.writableStore = true;
|
virtualisation.writableStore = true;
|
||||||
virtualisation.additionalPaths = [ pkgB pkgC ];
|
virtualisation.additionalPaths = [ pkgB pkgC ];
|
||||||
@ -64,7 +65,7 @@ in {
|
|||||||
# 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
|
||||||
server.fail("nix-store --check-validity ${pkgA}")
|
server.fail("nix-store --check-validity ${pkgA}")
|
||||||
client.send_chars("nix copy --to ssh://server ${pkgA} >&2; echo done\n")
|
client.send_chars("nix copy --to ssh://server ${pkgA} >&2; echo -n do; echo ne\n")
|
||||||
client.wait_for_text("continue connecting")
|
client.wait_for_text("continue connecting")
|
||||||
client.send_chars("yes\n")
|
client.send_chars("yes\n")
|
||||||
client.wait_for_text("Password:")
|
client.wait_for_text("Password:")
|
||||||
|
Loading…
Reference in New Issue
Block a user