Commit b269c146 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[test] Temporary output for investigation

Currently it's hard to reason about the hung tests on worker processes.
This adds simple output when we're trying to kill a hung process.

Change-Id: Iae5e14dac70a8149c074043dd00cbf10e4d5f3de
Reviewed-on: https://chromium-review.googlesource.com/712455Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48460}
parent dabd1c0a
......@@ -106,6 +106,11 @@ def RunProcess(verbose, timeout, args, additional_env, **rest):
print "Return code: %d" % tk.returncode
sys.stdout.flush()
else:
if utils.GuessOS() == "macos":
# TODO(machenbach): Temporary output for investigating hanging test
# driver on mac.
print "Attempting to kill process %d - cmd %s" % (process.pid, args)
sys.stdout.flush()
process.kill()
except OSError:
sys.stderr.write('Error: Process %s already ended.\n' % process.pid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment