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

[test] More printing to investigate hanging tests on mac

NOTRY=true
TBR=ulan@chromium.org

Change-Id: I497f5d0359d32e48cb1c54c958bc9897c168f025
Reviewed-on: https://chromium-review.googlesource.com/715900
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48500}
parent bc5d1c09
......@@ -112,6 +112,17 @@ def RunProcess(verbose, timeout, args, additional_env, **rest):
print "Attempting to kill process %d - cmd %s" % (process.pid, args)
sys.stdout.flush()
process.kill()
if utils.GuessOS() == "macos":
# TODO(machenbach): Temporary output for investigating hanging test
# driver on mac. This will probably not print much, since kill only
# sends the signal.
print "Return code after signalling the kill: %s" % process.returncode
try:
print subprocess.check_output(
"ps -e | egrep 'd8|cctest|unittests'", shell=True)
except Exception:
pass
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