nixosTests.nix-ssh-serve: port to python#73994
Conversation
a608956 to
ba77344
Compare
| client.succeed("mkdir -m 700 /root/.ssh") | ||
| client.succeed( | ||
| "cat ${ssh-config} > /root/.ssh/config" | ||
| ) | ||
| client.succeed( | ||
| "cat ${snakeOilPrivateKey} > /root/.ssh/id_ecdsa" | ||
| ) | ||
| client.succeed("chmod 600 /root/.ssh/id_ecdsa") |
There was a problem hiding this comment.
Is there no way to do simple file operations on the node in the test driver with just python?
There was a problem hiding this comment.
There'll be #22401 soon to copy things generated in the VM to $out, but I don't think we can solve this one here much better currently.
We could indirect via a file in the nix store, and cp the store path, because it's also in the VM.
There was a problem hiding this comment.
There'll be #22401 soon to copy things generated in the VM to $out, but I don't think we can solve this one here much better currently.
We could indirect via a file in the nix store, and cp the store path, because it's also in the VM.
worldofpeace
left a comment
There was a problem hiding this comment.
Succeeds for me on NixOS x86_64-linux.
|
@GrahamcOfBorg test nix-ssh-serve |
Motivation for this change
#72828
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"./result/bin/)nix path-info -Sbefore and after)Notify maintainers
cc @