symbols-check: skip test if we can't get the symbols list
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Tested-by: Vinson Lee <vlee@freedesktop.org>
This commit is contained in:
parent
c780af7771
commit
81b3d141b3
|
@ -47,7 +47,12 @@ def main():
|
||||||
help='path to binary (or name in $PATH)')
|
help='path to binary (or name in $PATH)')
|
||||||
args = parser.parse_args()
|
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 = []
|
mandatory_symbols = []
|
||||||
optional_symbols = []
|
optional_symbols = []
|
||||||
with open(args.symbols_file) as symbols_file:
|
with open(args.symbols_file) as symbols_file:
|
||||||
|
|
Loading…
Reference in New Issue