Skip to content
Snippets Groups Projects
Commit 3063107c authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Make apertis-abi-compare returning the same value as abi-compliance-checker


This value will be used to determine if the job should fail or succeed

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent 5d271fc9
No related branches found
No related tags found
3 merge requests!37Merge changes from apertis/v2022-updates into apertis/v2022,!32[v2022 <- v2023dev3] Merge v2023dev3 in v2022,!29Make apertis-abi-compare returning the same value as abi-compliance-checker
......@@ -99,9 +99,14 @@ def run_abi_checker(lib, xml_old, ver_old, xml_new, ver_new):
print(f'INFO: Running abi-compliance-checker to compare {lib}:')
print(f'INFO: - {ver_old} {xml_old}')
print(f'INFO: - {ver_new} {xml_new}')
subprocess.run(['/usr/bin/abi-compliance-checker', '-lib', lib,
'-old', xml_old, '-v1', ver_old,
'-new', xml_new, '-v2', ver_new])
acc_process = subprocess.run(['/usr/bin/abi-compliance-checker', '-lib', lib,
'-old', xml_old, '-v1', ver_old,
'-new', xml_new, '-v2', ver_new])
if acc_process.returncode == 0:
print('INFO: no ABI breakage detected!')
elif acc_process.returncode == 1:
print('WARNING: ABI breakage detected!')
sys.exit(acc_process.returncode)
def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment