aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest/uhd_test_base.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-11-11 16:26:42 -0800
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:33 -0800
commit879f021a0247c2978074044d99c91ca5f4aaf583 (patch)
treeec8baa5011eccdbbf852d29ca6358076f29fc16f /host/tests/devtest/uhd_test_base.py
parente0a40fd1d76c66e9374129536b7b10b76abad5f8 (diff)
downloaduhd-879f021a0247c2978074044d99c91ca5f4aaf583.tar.gz
uhd-879f021a0247c2978074044d99c91ca5f4aaf583.tar.bz2
uhd-879f021a0247c2978074044d99c91ca5f4aaf583.zip
devtest: Add test_messages_test to X310
- Fixes issues with test_messages_test (it had inverted the pass/fail condition) - Improve Pylint scores in affected files
Diffstat (limited to 'host/tests/devtest/uhd_test_base.py')
-rwxr-xr-xhost/tests/devtest/uhd_test_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/tests/devtest/uhd_test_base.py b/host/tests/devtest/uhd_test_base.py
index acc52d378..9f710b7be 100755
--- a/host/tests/devtest/uhd_test_base.py
+++ b/host/tests/devtest/uhd_test_base.py
@@ -243,7 +243,8 @@ class uhd_example_test_case(uhd_test_case):
Hook for test runner. Needs to be a class method that starts with 'test'.
Calls run_test().
"""
- for test_name, test_args in iteritems(self.test_params):
+ test_params = getattr(self, 'test_params', {})
+ for test_name, test_args in iteritems(test_params):
time.sleep(15) # Wait for X300 devices to reclaim them
if not 'products' in test_args \
or (self.usrp_info['product'] in test_args.get('products', [])):