Skip to content

Commit 381c70f

Browse files
tests: usb: gs_usb: host: specify argument types for the pytest config
Specify which types to expect for the pytest configuration arguments. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
1 parent 09351bf commit 381c70f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/subsys/usb/gs_usb/host/pytest/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
def pytest_addoption(parser) -> None:
1919
"""Add local parser options to pytest."""
20-
parser.addoption('--usb-delay', default=5,
20+
parser.addoption('--usb-delay', type=int, default=5,
2121
help='Delay to wait for USB enumeration after flashing (default: 5 seconds)')
22-
parser.addoption('--usb-sn', default=None,
22+
parser.addoption('--usb-sn', type=str, default=None,
2323
help='USB serial number of the DUT (default: None)')
2424

2525
@pytest.fixture(name='usb_vid', scope='module')

0 commit comments

Comments
 (0)