change: remove summary property from HttpRunner

This commit is contained in:
debugtalk
2019-11-02 00:01:28 +08:00
parent 09fc3c405c
commit a585369734
4 changed files with 32 additions and 59 deletions

View File

@@ -89,6 +89,7 @@ def main():
log_file=args.log_file
)
err_code = 0
try:
for path in args.testcase_paths:
summary = runner.run(path, dot_env_path=args.dot_env_path)
@@ -99,14 +100,12 @@ def main():
report_dir,
args.report_file
)
err_code |= (0 if summary and summary["success"] else 1)
except Exception:
color_print("!!!!!!!!!! exception stage: {} !!!!!!!!!!".format(runner.exception_stage), "YELLOW")
raise
if runner.summary and runner.summary["success"]:
return 0
else:
return 1
return err_code
if __name__ == '__main__':