aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhost/tests/devtest/benchmark_rate_test.py4
-rwxr-xr-xhost/tests/devtest/devtest_b2xx.py2
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',],