Skip to content
Snippets Groups Projects
Commit 64c25ac8 authored by Tino Lippold's avatar Tino Lippold
Browse files

Print a message for failed ABI check


The call of the abi-compliance-checker might fail due to
errors. Possible reasons are the failed compilation of the
header files. To ease the analysis of the job logs the
additional printout might help.
Correct 'apt update' command.

Signed-off-by: default avatarTino Lippold <Tino.Lippold@de.bosch.com>
parent 3d147abf
No related branches found
No related tags found
3 merge requests!44Merge changes from apertis/v2022-updates into apertis/v2022,!38Backport v2022-updates <- v2023pre: Improvement ABI checker script,!36Print a message for failed ABI check
Pipeline #422989 failed
This commit is part of merge request !36. Comments created here will be created in the context of that merge request.
apertis-dev-tools (0.2022.3) apertis; urgency=medium
* apertis-abi-compare:
- print a message in case of the ABI check fails due to errors
- correct 'apt update' command
-- Tino Lippold <Tino.Lippold@de.bosch.com> Mon, 19 Sep 2022 07:19:12 +0000
apertis-dev-tools (0.2022.2) apertis; urgency=medium
* apertis-abi-compare:
......
......@@ -123,6 +123,8 @@ def run_abi_checker(lib, xml_old, ver_old, xml_new, ver_new):
print('INFO: no ABI breakage detected!')
elif acc_process.returncode == 1:
print('WARNING: ABI breakage detected!')
else:
print('ERROR: ABI check failed!')
return acc_process.returncode
......@@ -196,7 +198,7 @@ def main():
print("INFO: abi-compliance-checker requires having Build-Deps installed")
print("INFO: Trying to install them now:")
print(my_builddeps)
subprocess.run(['sudo', '/usr/bin/apt', 'update'] + my_builddeps)
subprocess.run(['sudo', '/usr/bin/apt', 'update'])
subprocess.run(['sudo', '/usr/bin/apt', 'install', '-y'] + my_builddeps)
# Download debs of old version
......
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