diff options
author | Eric Engestrom <[email protected]> | 2019-08-04 00:31:05 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-08-04 11:06:27 +0100 |
commit | 81b3d141b37f37ed883e6b06a7980bcee761d604 (patch) | |
tree | 059d31314f79f889b5e9abf55bb096f18cdfa9e2 /bin/symbols-check.py | |
parent | c780af777158d7b351f22423556f455338cd7ed3 (diff) |
symbols-check: skip test if we can't get the symbols list
Signed-off-by: Eric Engestrom <[email protected]>
Tested-by: Vinson Lee <[email protected]>
Diffstat (limited to 'bin/symbols-check.py')
-rw-r--r-- | bin/symbols-check.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/symbols-check.py b/bin/symbols-check.py index 001a727a03e..7b1a086e95f 100644 --- a/bin/symbols-check.py +++ b/bin/symbols-check.py @@ -47,7 +47,12 @@ def main(): help='path to binary (or name in $PATH)') args = parser.parse_args() - lib_symbols = get_symbols(args.nm, args.lib) + try: + lib_symbols = get_symbols(args.nm, args.lib) + except: + # We can't run this test, but we haven't technically failed it either + # Return the GNU "skip" error code + exit(77) mandatory_symbols = [] optional_symbols = [] with open(args.symbols_file) as symbols_file: |