From de9cf6fc2c54f2c31281f76844989577881d81b5 Mon Sep 17 00:00:00 2001 From: Matthew Crymble Date: Tue, 19 Apr 2022 00:41:47 -0500 Subject: tests: streaming: add support for more DUTs This commit enables runs for X310, X310 TwinRx, E320, and N310. By default, python's argparse module will expect a value to be provided for each argument defined. Specifying an nargs value of '?' for the pytest options allows us to use a single pytest invocation in our pipeline configuration, even though some options don't apply to some DUT types. --- host/tests/pytests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/tests') diff --git a/host/tests/pytests/conftest.py b/host/tests/pytests/conftest.py index eaacb81a3..087fd2f8a 100644 --- a/host/tests/pytests/conftest.py +++ b/host/tests/pytests/conftest.py @@ -22,18 +22,22 @@ def pytest_addoption(parser): parser.addoption( "--addr", type=str, + nargs='?', help="address of first 10 GbE interface",) parser.addoption( "--second_addr", type=str, + nargs='?', help="address of second 10 GbE interface") parser.addoption( "--name", type=str, + nargs='?', help="name of B2xx device") parser.addoption( "--mgmt_addr", type=str, + nargs='?', help="address of management interface. only needed for DPDK test cases") parser.addoption( "--dut_type", -- cgit v1.2.3