diff options
| author | 2024-01-18 11:46:18 +0000 | |
|---|---|---|
| committer | 2024-01-18 11:46:18 +0000 | |
| commit | f29b80c51fbbdf0ec590b284f658ad356a9e7230 (patch) | |
| tree | 5088eee53411b168f1889146421b523ffef8160d /scripts/lint_project_xml.py | |
| parent | 3b21c9cadd4e8f16cac79db29b0aeae1042cea07 (diff) | |
| parent | 9809860ea82134ef79b7d9d6415192b3ee76ccc4 (diff) | |
Merge "Simplify strict updatability linting error message" into main
Diffstat (limited to 'scripts/lint_project_xml.py')
| -rwxr-xr-x | scripts/lint_project_xml.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lint_project_xml.py b/scripts/lint_project_xml.py index 3b0158d0b..c40b07d38 100755 --- a/scripts/lint_project_xml.py +++ b/scripts/lint_project_xml.py @@ -18,6 +18,7 @@ """This file generates project.xml and lint.xml files used to drive the Android Lint CLI tool.""" import argparse +import sys from xml.dom import minidom from ninja_rsp import NinjaRspFileReader @@ -159,8 +160,8 @@ def main(): if args.baseline_path: baseline = minidom.parse(args.baseline_path) disallowed_issues = check_baseline_for_disallowed_issues(baseline, args.disallowed_issues) - if bool(disallowed_issues): - raise RuntimeError('disallowed issues %s found in lint baseline file %s for module %s' + if disallowed_issues: + sys.exit('disallowed issues %s found in lint baseline file %s for module %s' % (disallowed_issues, args.baseline_path, args.name)) if args.project_out: |