aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/pytests
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-05-25 14:24:57 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:05 -0500
commit79f12bb44a1246191e3ea4a8760c474c8085669d (patch)
tree4d76db9affa3c1444f4bfe87d1da487d956164ae /host/tests/pytests
parentc23e0d9e8464418dc0bfe79887a899aaef969cce (diff)
downloaduhd-79f12bb44a1246191e3ea4a8760c474c8085669d.tar.gz
uhd-79f12bb44a1246191e3ea4a8760c474c8085669d.tar.bz2
uhd-79f12bb44a1246191e3ea4a8760c474c8085669d.zip
ci: Fix mgmt_addr=None entry for X310 DPDK case
X310 differs from X410 in that it doesn't require the mgmt_addr to function. This does a check to see if the field has been added, instead of assuming that it has a value. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to 'host/tests/pytests')
-rw-r--r--host/tests/pytests/test_streaming.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/tests/pytests/test_streaming.py b/host/tests/pytests/test_streaming.py
index aa608ab1e..d43660651 100644
--- a/host/tests/pytests/test_streaming.py
+++ b/host/tests/pytests/test_streaming.py
@@ -240,7 +240,13 @@ def test_streaming(pytestconfig, dut_type, use_dpdk, dual_SFP, rate, rx_rate, rx
device_args += f"second_addr={pytestconfig.getoption('second_addr')},"
if use_dpdk:
- device_args += f"use_dpdk=1,mgmt_addr={pytestconfig.getoption('mgmt_addr')},"
+ device_args += f"use_dpdk=1,"
+ try:
+ mgmt_addr = pytestconfig.getoption('mgmt_addr')
+ if mgmt_addr:
+ device_args += f"mgmt_addr={mgmt_addr},"
+ except Exception:
+ pass
try:
num_recv_frames = pytestconfig.getoption('num_recv_frames')