Index: testing/chromoting/browser_tests_launcher.py |
diff --git a/testing/chromoting/browser_tests_launcher.py b/testing/chromoting/browser_tests_launcher.py |
index 66b54fedbb1526adf1df0680e4d49458121f1fbd..8f4bba19f938692d2ec188005e0e31f00abbe166 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(): |