diff options
author | Matthew Crymble <matthew.crymble@ni.com> | 2022-04-19 01:08:31 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-06-10 13:24:04 -0500 |
commit | 76e94a606c348c40b59de5165e8648d266624127 (patch) | |
tree | e10463646e2ee1e716f12cf63c3ac7e65f908e09 /host/tests | |
parent | 053d089f814cc1c7773d14a12080555014a64b23 (diff) | |
download | uhd-76e94a606c348c40b59de5165e8648d266624127.tar.gz uhd-76e94a606c348c40b59de5165e8648d266624127.tar.bz2 uhd-76e94a606c348c40b59de5165e8648d266624127.zip |
tests: streaming: add support for B210 DUTs
The use_dpdk will be false for all B210 test cases, but still needs
to be defined since the main test_streaming() function requires
a value for it.
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/pytests/test_streaming.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/host/tests/pytests/test_streaming.py b/host/tests/pytests/test_streaming.py index 7896c765b..c4916c992 100644 --- a/host/tests/pytests/test_streaming.py +++ b/host/tests/pytests/test_streaming.py @@ -191,13 +191,18 @@ def pytest_generate_tests(metafunc): metafunc.parametrize("dut_type", [dut_type]) - if dut_type.lower() != "b210": + if dut_type.lower() == "b210": + argvalues_DPDK = [ + # use_dpdk test case ID marks + pytest.param(False, id="NO DPDK",) + ] + else: argvalues_DPDK = [ # use_dpdk test case ID marks pytest.param(True, id="DPDK", marks=pytest.mark.dpdk), pytest.param(False, id="NO DPDK",) ] - metafunc.parametrize("use_dpdk", argvalues_DPDK) + metafunc.parametrize("use_dpdk", argvalues_DPDK) if dut_type.lower() == 'n310': generate_N310_test_cases(metafunc, test_length) |