diff options
author | Michael West <michael.west@ettus.com> | 2020-03-23 15:34:36 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-30 15:14:28 -0500 |
commit | 09f3d17f5cc0405aa78511e7c05671913871572a (patch) | |
tree | 0a0f2e3f1412e2acc5946c83217fa4348b428526 /host/tests | |
parent | 52fb587373372e1f6024bd4adb7153c79aca3bde (diff) | |
download | uhd-09f3d17f5cc0405aa78511e7c05671913871572a.tar.gz uhd-09f3d17f5cc0405aa78511e7c05671913871572a.tar.bz2 uhd-09f3d17f5cc0405aa78511e7c05671913871572a.zip |
devtest: Fix benchmark_rate_test success criteria
Allow success if testing either TX or RX. Previously required both TX
and RX to be tested simultaneously.
Signed-off-by: Michael West <michael.west@ettus.com>
Diffstat (limited to 'host/tests')
-rwxr-xr-x | host/tests/devtest/benchmark_rate_test.py | 4 |
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, |