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

Unified Diff: tools/bots/dartium_android.py

Issue 200193004: Add ContentShell tests to dartium android builder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | tools/bots/run_android_tests.sh » ('j') | tools/bots/run_android_tests.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/dartium_android.py
diff --git a/tools/bots/dartium_android.py b/tools/bots/dartium_android.py
index 138c7dce65b11a5152a04ad39f3fd57d4d984a5b..00c1b8e41fcd0adef74ada1412958c965f2431a4 100644
--- a/tools/bots/dartium_android.py
+++ b/tools/bots/dartium_android.py
@@ -14,6 +14,7 @@ Dart and chromium tests on it.
import optparse
import os
import string
+import subprocess
import sys
import bot
@@ -38,7 +39,7 @@ def UploadSetACL(gsutil, local, remote):
gsutil.upload(local, remote)
gsutil.setGroupReadACL(remote, 'google.com')
gsutil.setContentType(remote, 'application/vnd.android.package-archive')
-
+
def UploadAPKs(options):
with bot.BuildStep('Upload apk'):
@@ -72,6 +73,13 @@ def UploadAPKs(options):
UploadSetACL(gsutil, local, remote)
print "Uploaded content shell, available from: %s" % content_shell_link
+
+def RunContentShellTests(options):
+ with bot.BuildStep('ContentShell tests'):
+ subprocess.call([os.path.join(SCRIPT_DIR, 'run_android_tests.sh'),
kustermann 2014/03/14 13:34:09 I'd strongly encourage you to change this to call_
+ os.path.join(options.build_products_dir, CS_LOCATION)])
+
+
def main():
if sys.platform != 'linux2':
print "This script was only tested on linux. Please run it on linux!"
@@ -85,6 +93,7 @@ def main():
sys.exit(1)
UploadAPKs(options)
+ RunContentShellTests(options)
sys.exit(0)
if __name__ == '__main__':
« no previous file with comments | « no previous file | tools/bots/run_android_tests.sh » ('j') | tools/bots/run_android_tests.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698