mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:59:44 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user