aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest/benchmark_rate_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/tests/devtest/benchmark_rate_test.py')
-rwxr-xr-xhost/tests/devtest/benchmark_rate_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/devtest/benchmark_rate_test.py b/host/tests/devtest/benchmark_rate_test.py
index cbc5d9f8d..598fbc8f0 100755
--- a/host/tests/devtest/benchmark_rate_test.py
+++ b/host/tests/devtest/benchmark_rate_test.py
@@ -99,8 +99,8 @@ class uhd_benchmark_rate_test(uhd_example_test_case):
run_results['num_rx_dropped'] == 0,
run_results['num_tx_seqerrs'] == 0,
run_results['num_tx_underruns'] <= test_args.get('acceptable-underruns', 0),
- run_results['num_rx_samples'] > 0,
- run_results['num_tx_samples'] > 0,
+ ((not 'rx' in test_args.get('direction', '')) or (run_results['num_rx_samples'] > 0)),
+ ((not 'tx' in test_args.get('direction', '')) or (run_results['num_tx_samples'] > 0)),
run_results['num_timeouts_rx'] == 0,
# run_results['rel_rx_samples_error'] < rel_samp_err_threshold,
# run_results['rel_tx_samples_error'] < rel_samp_err_threshold,