timeout changes (#8067)

This commit is contained in:
Victor Kuznetsov 2021-10-20 12:02:39 +03:00 committed by GitHub
parent 984fda6305
commit 5628a51c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -75,7 +75,7 @@ def run_memorytest(args: dict, log=None):
stats = {}
for run_iter in range(args["niter"]):
tmp_stats_path = tempfile.NamedTemporaryFile().name
retcode, msg = cmd_exec(cmd_common + ["-s", str(tmp_stats_path)], timeout=60, log=log)
retcode, msg = cmd_exec(cmd_common + ["-s", str(tmp_stats_path)], log=log)
if retcode != 0:
log.error("Run of executable '{}' failed with return code '{}'. Error: {}\n"
"Statistics aggregation is skipped.".format(args["executable"], retcode, msg))

View File

@ -233,9 +233,6 @@ def omz_models_conversion(instance, request):
return_code, _ = cmd_exec(cmd, log=logging)
assert return_code == 0, "Converting OMZ models has failed!"
instance["orig_instance"]["model"]["framework"] = model_info["framework"]
instance["orig_instance"]["model"]["path"] = sub_model_path
instance["instance"]["model"]["cache_path"] = model_out_path
instance["instance"]["model"]["irs_out_path"] = model_irs_out_path

View File

@ -0,0 +1,2 @@
[pytest]
timeout = 200