integration-tests: Add timeouts to SSH invocations

They occasionally become stuck, similar to NixOS/nixpkgs#171488.
This commit is contained in:
Zhaofeng Li 2022-05-13 19:14:58 -07:00
parent f5071dcff2
commit c1dc482c21

View file

@ -145,7 +145,7 @@ let
for node in ${targetList}: for node in ${targetList}:
node.wait_for_unit("sshd.service") node.wait_for_unit("sshd.service")
deployer.succeed(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true") deployer.succeed(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") deployer.succeed("cp --no-preserve=mode -r ${bundle} /tmp/bundle && chmod u+w /tmp/bundle")