diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-10-26 16:45:47 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-11-11 10:37:26 -0800 |
commit | 88b0baeaf6dfa5f62f99ad53680108183ccc8721 (patch) | |
tree | 951e4f13742c9b3421ccb1bf059d77cabcff8626 /host/tests/devtest/run_testsuite.py | |
parent | 201c5360cbb781ba93db408fb124a3bc44ffd383 (diff) | |
download | uhd-88b0baeaf6dfa5f62f99ad53680108183ccc8721.tar.gz uhd-88b0baeaf6dfa5f62f99ad53680108183ccc8721.tar.bz2 uhd-88b0baeaf6dfa5f62f99ad53680108183ccc8721.zip |
tests: More devtests, works on E3XX now
- devtest now gets installed
- uhd_usrp_probe test
- Added make test_e3xx
- Minor fixes to previous devtests
Diffstat (limited to 'host/tests/devtest/run_testsuite.py')
-rwxr-xr-x | host/tests/devtest/run_testsuite.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/host/tests/devtest/run_testsuite.py b/host/tests/devtest/run_testsuite.py index 587d1cc64..30601c8bd 100755 --- a/host/tests/devtest/run_testsuite.py +++ b/host/tests/devtest/run_testsuite.py @@ -96,6 +96,7 @@ def main(): if len(uhd_args_list) == 0: print("No devices found. Exiting.") exit(1) + tests_passed = True for uhd_idx, uhd_info in enumerate(uhd_args_list): print('--- Running all tests for device {dev} ({prod}, Serial: {ser}).'.format( dev=uhd_idx, @@ -125,8 +126,13 @@ def main(): env=env, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, ) - print p.communicate()[0] + print(p.communicate()[0]) + if p.returncode != 0: + tests_passed = False print('--- Done testing all attached devices.') + return tests_passed if __name__ == "__main__": - main() + if not main(): + exit(1) + |