aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Crymble <matthew.crymble@ni.com>2022-04-19 01:17:49 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:04 -0500
commitc104c97769e36daa7deb5a4ba03f1f191567fbd9 (patch)
tree7897d17695f2571f2dc397316d1150cbd493fe8a
parentfe5b92b06cf83c4c9a686a800a4ac3762798044a (diff)
downloaduhd-c104c97769e36daa7deb5a4ba03f1f191567fbd9.tar.gz
uhd-c104c97769e36daa7deb5a4ba03f1f191567fbd9.tar.bz2
uhd-c104c97769e36daa7deb5a4ba03f1f191567fbd9.zip
tests: streaming: don't set master clock rate on x310
-rw-r--r--host/tests/pytests/test_streaming.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/tests/pytests/test_streaming.py b/host/tests/pytests/test_streaming.py
index 958d4900f..3f6affa55 100644
--- a/host/tests/pytests/test_streaming.py
+++ b/host/tests/pytests/test_streaming.py
@@ -225,8 +225,11 @@ def test_streaming(pytestconfig, dut_type, use_dpdk, dual_SFP, rate, rx_rate, rx
benchmark_rate_path = Path(pytestconfig.getoption('uhd_build_dir')) / 'examples/benchmark_rate'
+ device_args = ""
+
# construct device args string
- device_args = f"master_clock_rate={rate},"
+ if dut_type.lower() in ['n310', 'n320', 'e320', 'b210']:
+ device_args += f"master_clock_rate={rate},"
if dut_type == "B210":
device_args += f"name={pytestconfig.getoption('name')},"
@@ -237,7 +240,7 @@ 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,mgmt_addr={pytestconfig.getoption('mgmt_addr')},"
# construct benchmark_rate params dictionary
benchmark_rate_params = {