diff options
author | Matthew Crymble <matthew.crymble@ni.com> | 2022-04-19 00:41:47 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-06-10 13:24:04 -0500 |
commit | de9cf6fc2c54f2c31281f76844989577881d81b5 (patch) | |
tree | bf0475ffd71c33e0b6684b5141de9e55e8e3977c /host/tests | |
parent | edb64f7402bf7ceb33b589d9f5480ef6890f74bb (diff) | |
download | uhd-de9cf6fc2c54f2c31281f76844989577881d81b5.tar.gz uhd-de9cf6fc2c54f2c31281f76844989577881d81b5.tar.bz2 uhd-de9cf6fc2c54f2c31281f76844989577881d81b5.zip |
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.
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/pytests/conftest.py | 4 |
1 files changed, 4 insertions, 0 deletions
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", |