Merge pull request #2763 from coolo/exit_installcheck

staging-installcheck: Exit 1 for the letter stagings
This commit is contained in:
Stephan Kulow 2022-03-22 15:28:11 +01:00 committed by GitHub
commit e78b535271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,13 +383,11 @@ if __name__ == '__main__':
else:
logging.basicConfig(level=logging.INFO)
result = True
if args.staging:
result = staging_report.staging(api.prj_from_short(args.staging), force=True)
if not staging_report.staging(api.prj_from_short(args.staging), force=True):
sys.exit(1)
else:
for staging in api.get_staging_projects():
if api.is_adi_project(staging):
result = staging_report.staging(staging) and result
if not result:
logging.error("Found problem")
staging_report.staging(staging)
sys.exit(0)