Skip to content

Commit 6dfa421

Browse files
authored
Merge pull request #27 from romecode/main
Terminate test session on session scoped fixture failure
2 parents f7625ca + 51cd4a0 commit 6dfa421

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/pytest_netdut/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def test_showver(dut):
6969
to this hostname.
7070
7171
"""
72+
7273
from typing import Callable
7374
import logging
7475
import pytest

src/pytest_netdut/px.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def __init__( # pylint: disable=dangerous-default-value,too-many-arguments
151151
if self.cmd == "ssh":
152152
self.args = ["%s@%s" % (username, o.hostname)]
153153
self.args += ["-o LogLevel ERROR"]
154+
self.args += ["-o ConnectionAttempts 10"]
154155
self.args += ["-o StrictHostKeyChecking no"]
155156
self.args += ["-o UserKnownHostsFile /dev/null"]
156157
# default is whatever TCP timeout at OS level

0 commit comments

Comments
 (0)