diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-03-25 14:50:27 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-03-25 14:50:27 -0700 |
commit | da00dad1c9497edd5762d6653c9db4dcef03a11c (patch) | |
tree | 067535e2f86906c0943b6acd0b2f491a877cbd87 /host/tests/devtest/benchmark_rate_test.py | |
parent | 1381437eaece7e069d9c8ebeecc727c64842f60e (diff) | |
download | uhd-da00dad1c9497edd5762d6653c9db4dcef03a11c.tar.gz uhd-da00dad1c9497edd5762d6653c9db4dcef03a11c.tar.bz2 uhd-da00dad1c9497edd5762d6653c9db4dcef03a11c.zip |
devtest: Fixed case where B200 test could fail due to bad params
Diffstat (limited to 'host/tests/devtest/benchmark_rate_test.py')
-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 6511d21ff..6c5a75d7f 100755 --- a/host/tests/devtest/benchmark_rate_test.py +++ b/host/tests/devtest/benchmark_rate_test.py @@ -53,10 +53,10 @@ class uhd_benchmark_rate_test(uhd_example_test_case): '--duration', str(duration), '--channels', str(chan), ] - if 'tx' in test_args['direction']: + if 'tx' in test_args.get('direction', ''): args.append('--tx_rate') args.append(str(samp_rate)) - if 'rx' in test_args['direction']: + if 'rx' in test_args.get('direction', ''): args.append('--rx_rate') args.append(str(samp_rate)) (app, run_results) = self.run_example('benchmark_rate', args) |