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

[test] Improve printing for investigating hung tests

NOTRY=true
TBR=ulan@chromium.org

Bug: v8:6927
Change-Id: I84e239c94ed6b545544bc3db30689b8ff1b158ae
Reviewed-on: https://chromium-review.googlesource.com/718098
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48519}
parent ad38a4e3
......@@ -110,6 +110,11 @@ def RunProcess(verbose, timeout, args, additional_env, **rest):
# TODO(machenbach): Temporary output for investigating hanging test
# driver on mac.
print "Attempting to kill process %d - cmd %s" % (process.pid, args)
try:
print subprocess.check_output(
"ps -e | egrep 'd8|cctest|unittests'", shell=True)
except Exception:
pass
sys.stdout.flush()
process.kill()
if utils.GuessOS() == "macos":
......@@ -117,11 +122,7 @@ def RunProcess(verbose, timeout, args, additional_env, **rest):
# 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
sys.stdout.flush()
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