From 879f021a0247c2978074044d99c91ca5f4aaf583 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 11 Nov 2019 16:26:42 -0800 Subject: 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 --- host/tests/devtest/uhd_test_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/tests/devtest/uhd_test_base.py') 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', [])): -- cgit v1.2.3