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 | |
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
-rwxr-xr-x | host/tests/devtest/benchmark_rate_test.py | 4 | ||||
-rwxr-xr-x | host/tests/devtest/devtest_b2xx.py | 2 |
2 files changed, 3 insertions, 3 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) diff --git a/host/tests/devtest/devtest_b2xx.py b/host/tests/devtest/devtest_b2xx.py index 7f45f4f6d..4b81f0afe 100755 --- a/host/tests/devtest/devtest_b2xx.py +++ b/host/tests/devtest/devtest_b2xx.py @@ -22,7 +22,7 @@ from benchmark_rate_test import uhd_benchmark_rate_test uhd_benchmark_rate_test.tests = { 'mimo': { 'duration': 1, - 'directions': ['tx,rx',], + 'direction': 'tx,rx', 'channels': ['0,1',], 'sample-rates': [1e6], 'products': ['B210',], |