From 76e94a606c348c40b59de5165e8648d266624127 Mon Sep 17 00:00:00 2001 From: Matthew Crymble Date: Tue, 19 Apr 2022 01:08:31 -0500 Subject: 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. --- host/tests/pytests/test_streaming.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'host/tests/pytests') 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) -- cgit v1.2.3