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

Unified Diff: build/android/buildbot/bb_device_steps.py

Issue 22825016: Archive webkit_tests results on android bots if requested. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove stray blank lines Created 7 years, 4 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/buildbot/bb_device_steps.py
diff --git a/build/android/buildbot/bb_device_steps.py b/build/android/buildbot/bb_device_steps.py
index 260ec76086b7bbbcc87a69b220167861e72fc8ad..83e809d9078a196b635b7c86a7194de73961d9e8 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -24,6 +24,7 @@ sys.path.append(os.path.join(
import errors
+SLAVE_SCRIPTS_DIR = os.path.join(bb_utils.BB_BUILD_DIR, 'scripts', 'slave')
CHROME_SRC = constants.DIR_SOURCE_ROOT
LOGCAT_DIR = os.path.join(CHROME_SRC, 'out', 'logcat')
@@ -70,6 +71,10 @@ VALID_TESTS = set(['chromedriver', 'ui', 'unit', 'webkit', 'webkit_layout',
RunCmd = bb_utils.RunCmd
+def SrcPath(*path):
+ return os.path.join(constants.DIR_SOURCE_ROOT, *path)
+
+
# multiprocessing map_async requires a top-level function for pickle library.
def RebootDeviceSafe(device):
"""Reboot a device, wait for it to start, and squelch timeout exceptions."""
@@ -225,6 +230,15 @@ def RunWebkitLayoutTests(options):
RunCmd(['webkit/tools/layout_tests/run_webkit_tests.py'] + cmd_args)
+ if options.factory_properties.get('archive_webkit_results', False):
+ bb_annotations.PrintNamedStep('archive_webkit_results')
+ RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'archive_layout_test_results.py'),
+ '--results-dir', '..layout-test-results',
Dirk Pranke 2013/08/20 23:31:07 This path seems really wrong, but it matches line
+ '--target', options.target,
+ '--build-dir', SrcPath('out'),
bulach 2013/08/21 09:06:14 please, use build/android/pylib/cmd_helper.py :: O
Isaac (away) 2013/08/21 10:10:14 Gosh, I'm not familiar with that. However, we are
Dirk Pranke 2013/08/28 19:45:47 Based on further conversation w/ Isaac, I'm going
+ '--build-number', str(options.build_properties.get('buildnumber', '')),
+ '--builder-name', options.build_properties.get('buildername', '')])
+
def SpawnLogcatMonitor():
shutil.rmtree(LOGCAT_DIR, ignore_errors=True)
« 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