New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Succeeds for me on NixOS x86_64-linux.
@GrahamcOfBorg test nix-ssh-serve |
Motivation for this change
#72828
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @