diff options
author | anandc <anandc@chromium.org> | 2014-11-12 17:04:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-13 01:05:04 +0000 |
commit | 6b6aa08ec5b565a620c75c8ecf9006a2c9c13045 (patch) | |
tree | ee98ac4413251610f026d16caab9728a506313ff /testing/chromoting/browser_tests_launcher.py | |
parent | c486ecc954d19ec9ca2a3b46b7f4962d760b2a92 (diff) | |
download | chromium_src-6b6aa08ec5b565a620c75c8ecf9006a2c9c13045.zip chromium_src-6b6aa08ec5b565a620c75c8ecf9006a2c9c13045.tar.gz chromium_src-6b6aa08ec5b565a620c75c8ecf9006a2c9c13045.tar.bz2 |
Start running Chromoting browser-tests on Linux using v2 web-app.
Also, update launcher script to collect more execution details.
BUG=
Review URL: https://codereview.chromium.org/723703003
Cr-Commit-Position: refs/heads/master@{#303949}
Diffstat (limited to 'testing/chromoting/browser_tests_launcher.py')
-rw-r--r-- | testing/chromoting/browser_tests_launcher.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/chromoting/browser_tests_launcher.py b/testing/chromoting/browser_tests_launcher.py index 66b54fe..8f4bba1 100644 --- a/testing/chromoting/browser_tests_launcher.py +++ b/testing/chromoting/browser_tests_launcher.py @@ -14,14 +14,14 @@ def LaunchCommand(command): cmd_line = [command] try: - results = subprocess.check_output( - cmd_line, stderr=subprocess.STDOUT, shell=True) + p = subprocess.Popen(cmd_line, stdout=subprocess.PIPE, shell=True) + results, err = p.communicate() + if 'SUCCESS: all tests passed.' not in results: + raise Exception('Test failed\n%s\n%s' % (results, err)) except subprocess.CalledProcessError, e: raise Exception('Exception %s running command %s' % (e, command)) else: print results - finally: - pass def main(): |