Skip to content

Commit

Permalink
Fix build cmd logging
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Jun 18, 2018
1 parent 06989a8 commit 4655b23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rebench/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,10 @@ def _generate_data_point(self, cmdline, gauge_adapter, run_id,
run_id.indicate_invocation_start()

try:
debug_output_info("Starting run" +
DETAIL_INDENT + "Cmd: " + cmdline +
DETAIL_INDENT + "Cwd: " + run_id.location)
msg = "Starting run" + DETAIL_INDENT + "Cmd: " + cmdline
if run_id.location:
msg += DETAIL_INDENT + "Cwd: " + run_id.location
debug_output_info(msg)

(return_code, output, _) = subprocess_timeout.run(
cmdline, cwd=run_id.location, stdout=subprocess.PIPE,
Expand Down

0 comments on commit 4655b23

Please sign in to comment.