summaryrefslogtreecommitdiffstats
path: root/mojo/tools/run_mojo_python_tests.py
diff options
context:
space:
mode:
authorskobes@chromium.org <skobes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-30 19:41:46 +0000
committerskobes@chromium.org <skobes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-30 19:41:46 +0000
commit29f6350200a18c1c4ca5c20aa60f13b87666e7b0 (patch)
treeb58c9e285055c17b23b0f52c3b4b985ec5309c4b /mojo/tools/run_mojo_python_tests.py
parent5fffe150574c0a3397306aaa314e5f1888e7da4d (diff)
downloadchromium_src-29f6350200a18c1c4ca5c20aa60f13b87666e7b0.zip
chromium_src-29f6350200a18c1c4ca5c20aa60f13b87666e7b0.tar.gz
chromium_src-29f6350200a18c1c4ca5c20aa60f13b87666e7b0.tar.bz2
Revert 286504 "Fix typos in num_failures_by_type for json results."
Suspected cause of results_viewer_unittest.testBasic timeout: http://build.chromium.org/p/chromium.win/builders/Vista%20Tests%20%282%29/builds/44045 TimeoutException: Timed out while waiting 120s for IsJavaScriptExpressionTrue. > Fix typos in num_failures_by_type for json results. > > This changes a few occurrences of "Failure" -> "FAIL" and "Pass" -> "PASS" > to conform to the doc format. The existing data is not actually being > used yet, but the flakiness dashboard needs the correct values. > > Also fix a typo in run_mojo_python_tests that was preventing us from > running individual tests on the command line. > > R=ojan@chromium.org, viettrungluu@chromium.org, grt@chromium.org > > Review URL: https://codereview.chromium.org/429013004 TBR=dpranke@chromium.org Review URL: https://codereview.chromium.org/430913003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/tools/run_mojo_python_tests.py')
-rwxr-xr-xmojo/tools/run_mojo_python_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mojo/tools/run_mojo_python_tests.py b/mojo/tools/run_mojo_python_tests.py
index da9ab63..778a575 100755
--- a/mojo/tools/run_mojo_python_tests.py
+++ b/mojo/tools/run_mojo_python_tests.py
@@ -49,7 +49,7 @@ def main():
if pylib_dir not in sys.path:
sys.path.append(pylib_dir)
suite = unittest.TestSuite()
- for test_name in args.tests:
+ for test_name in args:
suite.addTests(loader.loadTestsFromName(test_name))
else:
suite = loader.discover(pylib_dir, pattern='*_unittest.py')
@@ -88,8 +88,8 @@ def _FullResults(suite, result, metadata):
failed_test_names = _FailedTestNames(result)
full_results['num_failures_by_type'] = {
- 'FAIL': len(failed_test_names),
- 'PASS': len(all_test_names) - len(failed_test_names),
+ 'Failure': len(failed_test_names),
+ 'Pass': len(all_test_names) - len(failed_test_names),
}
full_results['tests'] = {}