Skip to content

Commit

Permalink
integration-tests: Wait for initial SSH to succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Jan 28, 2023
1 parent 79e4ff1 commit bf6b888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ let
${lib.optionalString (length targets != 0) ''
for node in ${targetList}:
node.wait_for_unit("sshd.service")
deployer.succeed(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true", timeout=30)
deployer.wait_until_succeeds(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true", timeout=30)
''}
deployer.succeed("cp --no-preserve=mode -r ${bundle} /tmp/bundle && chmod u+w /tmp/bundle")
Expand Down

0 comments on commit bf6b888

Please sign in to comment.