Changeset View
Changeset View
Standalone View
Standalone View
helpers/create-abi-dump.py
Show First 20 Lines • Show All 363 Lines • ▼ Show 20 Line(s) | 356 | extraMetadata = { | |||
---|---|---|---|---|---|
364 | } | 364 | } | ||
365 | packageName = "{name}_{scmRevision}_{platform}".format(name=library.name, scmRevision=scmRevision, platform=arguments.platform) | 365 | packageName = "{name}_{scmRevision}_{platform}".format(name=library.name, scmRevision=scmRevision, platform=arguments.platform) | ||
366 | ourArchive.storePackage(packageName, fileName, scmRevision, extraMetadata) | 366 | ourArchive.storePackage(packageName, fileName, scmRevision, extraMetadata) | ||
367 | except subprocess.CalledProcessError as e: | 367 | except subprocess.CalledProcessError as e: | ||
368 | retval = e.returncode | 368 | retval = e.returncode | ||
369 | logging.error("abi-compliance-checker exited with {retval}".format(retval=retval)) | 369 | logging.error("abi-compliance-checker exited with {retval}".format(retval=retval)) | ||
370 | 370 | | |||
371 | # We had an issue with one of the ABIs | 371 | # We had an issue with one of the ABIs | ||
372 | if retval != 0: | 372 | if retval != 0 and accSettings['createABIDumpFailHard']: | ||
373 | sys.exit(retval) | 373 | sys.exit("Errors detected and createABIDumpFailHard is set, so we fail hard.") |