Skip to content

Commit

Permalink
Merge pull request #41 from tspurden-broadcom/useful-exit-code
Browse files Browse the repository at this point in the history
Exit with non-zero exit code if there are any verification fails
  • Loading branch information
lordalcol authored Mar 1, 2024
2 parents c0ccb9c + 3fcc0ca commit 6c84905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion report.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,4 @@ def generate(self, returnCode = None):
print(passMsg)
print('\n' + '=' * 54)

return
return fails, warnings
3 changes: 2 additions & 1 deletion verify_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,5 @@ def parseArgs ():
else:
report.warning("Not supported type of submission: %s" % apiName, packageFileBN)

report.generate()
fails, warnings = report.generate()
sys.exit(0 if fails == 0 else 1)

0 comments on commit 6c84905

Please sign in to comment.