Skip to content

Commit 4e82ea9

Browse files
committed
fix(multiuser-test): diagnose SSH failure with timeout and debug output
1 parent d43550e commit 4e82ea9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

checks/multiuser/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ pkgs.testers.runNixOSTest {
3636
for user in ("alice", "bob", "root"):
3737
code, output = controller.execute(
3838
fr"""
39+
set -x
40+
sudo -nu {user} -- test -f "$HOME/.ssh/id_rsa" && echo "key exists" || echo "NO KEY"
3941
sudo -nu {user} -- ${lib.getExe nodes.target01.lollypops.deployment.ssh.login} whoami
4042
""",
41-
timeout=10,
43+
timeout=60,
4244
)
45+
print(f"user={user} code={code} output={output!r}")
4346
t.assertEqual(output.strip(), user)
4447
'';
4548
}

0 commit comments

Comments
 (0)