add return value in cli.main to adapt jenkins:

1, if all testcases passed, then jenkins job pass;
2, if any testcase failed, then jenkins job fail.
This commit is contained in:
debugtalk
2017-08-03 14:20:57 +08:00
parent 656a34d3d3
commit 52c6f7e084

View File

@@ -77,3 +77,5 @@ def main():
if mailer and mailer.config_ready:
mailer.send_mail(flag, content=results)
return 0 if flag == "SUCCESS" else 1