Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1326)

Unified Diff: build/android/run_tests.py

Issue 10690081: auto-detect directory when running tests with specified test_suite (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to latest origin/master Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/run_tests.py
diff --git a/build/android/run_tests.py b/build/android/run_tests.py
index a8c4841c938f07a2feaec7a3d1c0c4c550e5e7f7..90bfe6bcecbc0241068d632de5ed2eb30562980b 100755
--- a/build/android/run_tests.py
+++ b/build/android/run_tests.py
@@ -197,6 +197,18 @@ def RunTests(device, test_suite, gtest_filter, test_arguments, rebaseline,
if test_suite:
global _TEST_SUITES
+
+ # If not specified, assume the test suites are in out/Release
+ test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR,
+ 'out', 'Release'))
+ if apk:
+ # out/Release/$SUITE_apk/$SUITE-debug.apk
+ test_suite = os.path.join(test_suite_dir,
+ test_suite + '_apk',
+ test_suite + '-debug.apk')
+ else:
+ test_suite = os.path.join(test_suite_dir, test_suite)
+
if (not os.path.exists(test_suite)):
logging.critical('Unrecognized test suite %s, supported: %s' %
(test_suite, _TEST_SUITES))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698