From cc9cfb5fa2bf8600e639ae7b2074efe9aa9dcf74 Mon Sep 17 00:00:00 2001 From: romecode Date: Sun, 3 Mar 2024 20:48:34 -0500 Subject: [PATCH] Update px.py Fixture failure for session when SSH can't connect. --- src/pytest_netdut/px.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pytest_netdut/px.py b/src/pytest_netdut/px.py index 911ec73..8c05cf8 100644 --- a/src/pytest_netdut/px.py +++ b/src/pytest_netdut/px.py @@ -151,6 +151,7 @@ def __init__( # pylint: disable=dangerous-default-value,too-many-arguments if self.cmd == "ssh": self.args = ["%s@%s" % (username, o.hostname)] self.args += ["-o LogLevel ERROR"] + self.args += ["-o ConnectionAttempts 10"] self.args += ["-o StrictHostKeyChecking no"] self.args += ["-o UserKnownHostsFile /dev/null"] # default is whatever TCP timeout at OS level