Commit 7aebaa45 authored by Ben Pastene's avatar Ben Pastene Committed by Commit Bot

Fix return code handling in cros VM tests.

TBR=jbudorick@chromium.org

Change-Id: Ie11ee477222ea041c0f5d558306d52b3b83c2c32
Reviewed-on: https://chromium-review.googlesource.com/1093267Reviewed-by: default avatarBen Pastene <bpastene@chromium.org>
Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565672}
parent 0cc078f8
...@@ -227,6 +227,7 @@ def vm_test(args): ...@@ -227,6 +227,7 @@ def vm_test(args):
child.kill() child.kill()
signal.signal(signal.SIGTERM, _kill_child_procs) signal.signal(signal.SIGTERM, _kill_child_procs)
test_proc.wait() test_proc.wait()
rc = test_proc.returncode
# Create a simple json results file for the sanity test if needed. The results # Create a simple json results file for the sanity test if needed. The results
# will contain only one test ('cros_vm_sanity_test'), and will either be a # will contain only one test ('cros_vm_sanity_test'), and will either be a
...@@ -241,7 +242,7 @@ def vm_test(args): ...@@ -241,7 +242,7 @@ def vm_test(args):
with open(args.test_launcher_summary_output, 'w') as f: with open(args.test_launcher_summary_output, 'w') as f:
json.dump(json_results.GenerateResultsDict([run_results]), f) json.dump(json_results.GenerateResultsDict([run_results]), f)
return test_proc.returncode return rc
def main(): def main():
......
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