symbols-check: skip test if we can't get the symbols list
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 3 Aug 2019 23:31:05 +0000 (00:31 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Sun, 4 Aug 2019 10:06:27 +0000 (11:06 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
bin/symbols-check.py

index 001a727a03efde5feeaa3721e70979b789a43dbb..7b1a086e95f3378160f8c90707d3c3dcba86b25e 100644 (file)
@@ -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: