Skip to content

Commit

Permalink
changed pytest exe, fixed counting duration
Browse files Browse the repository at this point in the history
  • Loading branch information
godfryd committed Oct 15, 2021
1 parent b33cea6 commit b7e732b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .kraken/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def stage(ctx):
"cwd": "kraken/server/kraken/server"
}, {
"tool": "pytest",
"pytest_exe": "pytest",
"params": "-vv",
"cwd": "kraken/agent"
}],
Expand Down
2 changes: 1 addition & 1 deletion agent/kraken/agent/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def execute(sock, module, command, step_file_path):
else:
raise Exception('unknown command %s' % command)

duration = t0 - time.time()
duration = time.time() - t0 + 0.5
log.info('step tool %s, cmd %s done with retcode %s in %dsecs', tool_name, command, ret, duration)

if ret != 0:
Expand Down

0 comments on commit b7e732b

Please sign in to comment.