Commit 0ecbd51a authored by kkania@chromium.org's avatar kkania@chromium.org

[chromedriver] Fix run_all_tests to return correct exit code.

NOTRY=true
BUG=none


Review URL: https://chromiumcodereview.appspot.com/12255013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182269 0039d316-1c4b-4281-b951-d872f2087c98
parent 10e9ed83
......@@ -45,8 +45,10 @@ def RunPythonTests(chromedriver, chrome):
if util.IsMac():
# In Mac, chromedriver2.so is a 32-bit build, so run with the 32-bit python.
os.environ['VERSIONER_PYTHON_PREFER_32_BIT'] = 'yes'
if util.RunCommand(cmd):
code = util.RunCommand(cmd)
if code:
print '@@@STEP_FAILURE@@@'
return code
def RunJavaTests(chromedriver, chrome):
......@@ -57,14 +59,18 @@ def RunJavaTests(chromedriver, chrome):
'--chromedriver=' + chromedriver,
'--chrome=' + chrome,
]
if util.RunCommand(cmd):
code = util.RunCommand(cmd)
if code:
print '@@@STEP_FAILURE@@@'
return code
def RunCppTests(cpp_tests):
print '@@@BUILD_STEP chromedriver2_tests@@@'
if util.RunCommand([cpp_tests]):
code = util.RunCommand([cpp_tests])
if code:
print '@@@STEP_FAILURE@@@'
return code
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