From da00dad1c9497edd5762d6653c9db4dcef03a11c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 25 Mar 2016 14:50:27 -0700 Subject: devtest: Fixed case where B200 test could fail due to bad params --- host/tests/devtest/benchmark_rate_test.py | 4 ++-- host/tests/devtest/devtest_b2xx.py | 2 +- 2 files changed, 3 insertions(+), 3 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 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',], -- cgit v1.2.3