diff options
Diffstat (limited to 'host/tests/devtest')
-rw-r--r-- | host/tests/devtest/python_api_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/tests/devtest/python_api_test.py b/host/tests/devtest/python_api_test.py index d9fcda0b0..0e2ca45f7 100644 --- a/host/tests/devtest/python_api_test.py +++ b/host/tests/devtest/python_api_test.py @@ -22,6 +22,11 @@ class uhd_python_api_test(uhd_test_case): Run test and report results. """ if uhd is None: + print("UHD module not found -- checking for Python API") + config_info_app = shell_application('uhd_config_info') + config_info_app.run(['--enabled-components']) + if "Python API" in config_info_app.stdout: + raise RuntimeError("Python API enabled, but cannot load uhd module!") print("Skipping test, Python API not installed.") self.report_result("python_api_tester", 'status', 'Skipped') return |