Add a test for nix copy over ssh

Check that nix copy can copy stuff, refuses to copy unsigned paths by
default, and doesn't hide the ssh password prompt.
This commit is contained in:
Alexander Bantyev
2023-03-22 09:45:08 +04:00
parent 5291a82cd9
commit 85a2d1d94f
3 changed files with 89 additions and 2 deletions
+2 -2
View File
@@ -129,6 +129,7 @@ public:
void resume() override {
state_.lock()->paused = false;
writeToStderr("\r\e[K");
state_.lock()->haveUpdate = true;
updateCV.notify_one();
}
@@ -350,9 +351,8 @@ public:
{
auto nextWakeup = std::chrono::milliseconds::max();
if (state.paused) return nextWakeup;
state.haveUpdate = false;
if (!state.active) return nextWakeup;
if (state.paused || !state.active) return nextWakeup;
std::string line;