summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorfrankf@google.com <frankf@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 23:29:12 +0000
committerfrankf@google.com <frankf@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 23:29:12 +0000
commit3d6ebcab3586843f0da5bd41650e1e845e674eb3 (patch)
tree4a245dbfaa6b54389440ee8ac2d4b66bce7d08d4 /build
parent15955ba79d13c089afa37ff255e031574a8150e9 (diff)
downloadchromium_src-3d6ebcab3586843f0da5bd41650e1e845e674eb3.zip
chromium_src-3d6ebcab3586843f0da5bd41650e1e845e674eb3.tar.gz
chromium_src-3d6ebcab3586843f0da5bd41650e1e845e674eb3.tar.bz2
Raise an exception if a unittest target is missing.
BUG=163653 Review URL: https://codereview.chromium.org/11421187 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rwxr-xr-xbuild/android/run_tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/build/android/run_tests.py b/build/android/run_tests.py
index 1518602..2818dfe 100755
--- a/build/android/run_tests.py
+++ b/build/android/run_tests.py
@@ -113,11 +113,10 @@ def FullyQualifiedTestSuites(exe, option_test_suite, build_type):
for t in all_test_suites]
for t, q in zip(all_test_suites, qualified_test_suites):
if not os.path.exists(q):
- logging.critical('Test suite %s not found in %s.\n'
- 'Supported test suites:\n %s\n'
- 'Ensure it has been built.\n',
- t, q, _TEST_SUITES)
- return []
+ raise Exception('Test suite %s not found in %s.\n'
+ 'Supported test suites:\n %s\n'
+ 'Ensure it has been built.\n' %
+ (t, q, _TEST_SUITES))
return qualified_test_suites