aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-05-24 11:58:08 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:05 -0500
commitc23e0d9e8464418dc0bfe79887a899aaef969cce (patch)
tree6c0850c9048273bb3ab201b229c637a4a0eafbc1
parent651113ee21a1a1d7432550e6e57b0e1f4bc09744 (diff)
downloaduhd-c23e0d9e8464418dc0bfe79887a899aaef969cce.tar.gz
uhd-c23e0d9e8464418dc0bfe79887a899aaef969cce.tar.bz2
uhd-c23e0d9e8464418dc0bfe79887a899aaef969cce.zip
Revert "tests: streaming: temporarily mark b210 dropped samples as an xfail"
This reverts commit 50bda84c75c2087caebc2bfd5f8e8cd64b41e739.
-rw-r--r--host/tests/pytests/test_streaming.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/host/tests/pytests/test_streaming.py b/host/tests/pytests/test_streaming.py
index beb5f7468..aa608ab1e 100644
--- a/host/tests/pytests/test_streaming.py
+++ b/host/tests/pytests/test_streaming.py
@@ -302,18 +302,10 @@ def test_streaming(pytestconfig, dut_type, use_dpdk, dual_SFP, rate, rx_rate, rx
# https://docs.pytest.org/en/6.2.x/assert.html#defining-your-own-explanation-for-failed-assertions
if rx_channels:
- if not stats.avg_vals.dropped_samps <= dropped_samps_threshold:
- dropped_samps_error_text = (
- f"Number of dropped samples exceeded threshold.\n"
- f"Expected dropped samples: <= {dropped_samps_threshold}\n"
- f"Actual dropped samples: {stats.avg_vals.dropped_samps}\n"
- )
- # Temporarily ignore b210 dropped sample errors, since these happen
- # intermittently on the streaming test machine
- if dut_type.lower() == "b210":
- pytest.xfail(dropped_samps_error_text)
- else:
- assert False, dropped_samps_error_text
+ assert stats.avg_vals.dropped_samps <= dropped_samps_threshold, \
+ f"""Number of dropped samples exceeded threshold.
+ Expected dropped samples: <= {dropped_samps_threshold}
+ Actual dropped samples: {stats.avg_vals.dropped_samps}"""
assert stats.avg_vals.rx_timeouts <= rx_timeouts_threshold, \
f"""Number of rx timeouts exceeded threshold.
Expected rx timeouts: <= {rx_timeouts_threshold}