diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-08-20 10:30:26 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-08-25 07:10:53 -0500 |
commit | 0d273bfe0c5c77160d5d5fdbfc9b2a8c9f71a5c2 (patch) | |
tree | 1686ab559cdee1087da59c8250889638b30aa0b6 /host/tests | |
parent | db0d2dddcc5d8e39e2b7843a326ad9392bbb4c3f (diff) | |
download | uhd-0d273bfe0c5c77160d5d5fdbfc9b2a8c9f71a5c2.tar.gz uhd-0d273bfe0c5c77160d5d5fdbfc9b2a8c9f71a5c2.tar.bz2 uhd-0d273bfe0c5c77160d5d5fdbfc9b2a8c9f71a5c2.zip |
tests: fbs test: Fix issues around missing git
- update_fbs.py would use git directly, instead of the requested git
executable
- There are other corner cases for the git executable detection, which
are now all captured under a more general exception type
Credit to Christopher Friedt for pointing out the original issue.
Diffstat (limited to 'host/tests')
-rw-r--r-- | host/tests/verify_fbs_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/tests/verify_fbs_test.py b/host/tests/verify_fbs_test.py index c3ee763e4..261037c4f 100644 --- a/host/tests/verify_fbs_test.py +++ b/host/tests/verify_fbs_test.py @@ -26,7 +26,8 @@ class VerifyFBSTest(unittest.TestCase): spec.loader.exec_module(update_fbs) try: git_exe = update_fbs.find_executable("git") - except RuntimeError: + # pylint: disable=broad-except + except Exception: # No git, no test. We pass b/c git is not a UHD dependency. return sys.argv.append('--verify') |