Tools/ChangeLog
1
2011-05-04 Dirk Pranke <dpranke@chromium.org>
2
3
Reviewed by NOBODY (OOPS!).
4
5
new-run-webkit-tests: doesn't wait for children if it gets a ctrl-c
6
https://bugs.webkit.org/show_bug.cgi?id=60241
7
8
* Scripts/new-run-webkit-tests:
9
1
10
2011-05-03 Dirk Pranke <dpranke@chromium.org>
2
11
3
12
Unreviewed, rolling out r85659.
Tools/Scripts/new-run-webkit-tests
@
@
if __name__ == '__main__':
50
50
env['PYTHONPATH'] = script_dir
51
51
module_path = os.path.join(script_dir, 'webkitpy', 'layout_tests', 'run_webkit_tests.py')
52
52
cmd = [sys.executable, module_path] + sys.argv[1:]
53
proc = None
53
54
try:
54
sys.exit(subprocess.call(cmd, env=env))
55
proc = subprocess.Popen(cmd, env=env)
56
proc.wait()
55
57
except KeyboardInterrupt:
56
# this mirrors what the shell normally does
57
sys.exit(signal.SIGINT + 128)
58
pass
59
finally:
60
# We need a second wait in order to make sure the subprocess exits fully.
61
# FIXME: It would be nice if we could put a timeout on this.
62
if proc:
63
proc.wait()
64
sys.exit(proc.returncode)