From 09f3d17f5cc0405aa78511e7c05671913871572a Mon Sep 17 00:00:00 2001 From: Michael West Date: Mon, 23 Mar 2020 15:34:36 -0700 Subject: 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 --- host/tests/devtest/benchmark_rate_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/tests/devtest') 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, -- cgit v1.2.3