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

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: actually fix typo and remove unnecessary bb_utils. qualifier 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 | build/android/buildbot/bb_utils.py » ('j') | build/android/buildbot/bb_utils.py » ('J')
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 b8a1b84a01eb273b8baee26bda99cc81a8029f64..ded4bb79a0b638613ee695a1207f989a4f70d876 100755
--- a/build/android/buildbot/bb_device_steps.py
+++ b/build/android/buildbot/bb_device_steps.py
@@ -21,13 +21,15 @@ from pylib import android_commands
from pylib import constants
from pylib.gtest import gtest_config
+CHROME_SRC_DIR = bb_utils.CHROME_SRC
+CHROME_OUT_DIR = bb_utils.CHROME_OUT_DIR
sys.path.append(os.path.join(
- constants.DIR_SOURCE_ROOT, 'third_party', 'android_testrunner'))
+ CHROME_SRC_DIR, 'third_party', 'android_testrunner'))
import errors
-CHROME_SRC = constants.DIR_SOURCE_ROOT
-LOGCAT_DIR = os.path.join(CHROME_SRC, 'out', 'logcat')
+SLAVE_SCRIPTS_DIR = os.path.join(bb_utils.BB_BUILD_DIR, 'scripts', 'slave')
+LOGCAT_DIR = os.path.join(bb_utils.CHROME_OUT_DIR, 'logcat')
# Describes an instrumation test suite:
# test: Name of test we're running.
@@ -220,7 +222,7 @@ def RunWebkitLayoutTests(options):
'--exit-after-n-failures', '5000',
'--exit-after-n-crashes-or-timeouts', '100',
'--debug-rwt-logging',
- '--results-directory', '..layout-test-results',
+ '--results-directory', '../layout-test-results',
Dirk Pranke 2013/08/28 19:49:29 Looks like this was a typo introduced in https:/
Isaac (away) 2013/08/28 20:03:50 :-) == imsrry
'--target', options.target,
'--builder-name', options.build_properties.get('buildername', ''),
'--build-number', str(options.build_properties.get('buildnumber', '')),
@@ -235,21 +237,30 @@ def RunWebkitLayoutTests(options):
for f in options.factory_properties.get('additional_expectations', []):
cmd_args.extend(
- ['--additional-expectations=%s' % os.path.join(CHROME_SRC, *f)])
+ ['--additional-expectations=%s' % os.path.join(CHROME_SRC_DIR, *f)])
# TODO(dpranke): Remove this block after
# https://codereview.chromium.org/12927002/ lands.
for f in options.factory_properties.get('additional_expectations_files', []):
cmd_args.extend(
- ['--additional-expectations=%s' % os.path.join(CHROME_SRC, *f)])
+ ['--additional-expectations=%s' % os.path.join(CHROME_SRC_DIR, *f)])
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',
+ '--target', options.target,
+ '--build-dir', CHROME_OUT_DIR,
+ '--build-number', str(options.build_properties.get('buildnumber', '')),
+ '--builder-name', options.build_properties.get('buildername', '')])
+
def SpawnLogcatMonitor():
shutil.rmtree(LOGCAT_DIR, ignore_errors=True)
bb_utils.SpawnCmd([
- os.path.join(CHROME_SRC, 'build', 'android', 'adb_logcat_monitor.py'),
+ os.path.join(CHROME_SRC_DIR, 'build', 'android', 'adb_logcat_monitor.py'),
LOGCAT_DIR])
# Wait for logcat_monitor to pull existing logcat
@@ -348,7 +359,7 @@ def GenerateJavaCoverageReport(options):
coverage_html = os.path.join(options.coverage_dir, 'coverage_html')
RunCmd(['build/android/generate_emma_html.py',
'--coverage-dir', options.coverage_dir,
- '--metadata-dir', os.path.join(CHROME_SRC, 'out', options.target),
+ '--metadata-dir', os.path.join(CHROME_OUT_DIR, options.target),
'--cleanup',
'--output', os.path.join(coverage_html, 'index.html')])
UploadCoverageData(options, coverage_html, 'java')
@@ -357,10 +368,11 @@ def GenerateJavaCoverageReport(options):
def LogcatDump(options):
# Print logcat, kill logcat monitor
bb_annotations.PrintNamedStep('logcat_dump')
- logcat_file = os.path.join(CHROME_SRC, 'out', options.target, 'full_log')
+ logcat_file = os.path.join(CHROME_OUT_DIR, options.target, 'full_log')
with open(logcat_file, 'w') as f:
RunCmd([
- os.path.join(CHROME_SRC, 'build', 'android', 'adb_logcat_printer.py'),
+ os.path.join(CHROME_SRC_DIR, 'build', 'android',
+ 'adb_logcat_printer.py'),
LOGCAT_DIR], stdout=f)
RunCmd(['cat', logcat_file])
@@ -368,7 +380,7 @@ def LogcatDump(options):
def GenerateTestReport(options):
bb_annotations.PrintNamedStep('test_report')
for report in glob.glob(
- os.path.join(CHROME_SRC, 'out', options.target, 'test_logs', '*.log')):
+ os.path.join(CHROME_OUT_DIR, options.target, 'test_logs', '*.log')):
RunCmd(['cat', report])
os.remove(report)
@@ -448,7 +460,7 @@ def main(argv):
setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
if options.coverage_bucket:
setattr(options, 'coverage_dir',
- os.path.join(CHROME_SRC, 'out', options.target, 'coverage'))
+ os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
MainTestWrapper(options)
« no previous file with comments | « no previous file | build/android/buildbot/bb_utils.py » ('j') | build/android/buildbot/bb_utils.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698