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:
httprunner
2017-08-03 14:20:57 +08:00
parent 80d3febf87
commit 4dbae83199

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