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

Unified Diff: dart/client/tools/buildbot_annotated_steps.py

Issue 8408002: Add a new variable environment for testing, to replace the misusage of 'arch'. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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
Index: dart/client/tools/buildbot_annotated_steps.py
===================================================================
--- dart/client/tools/buildbot_annotated_steps.py (revision 991)
+++ dart/client/tools/buildbot_annotated_steps.py (working copy)
@@ -38,14 +38,14 @@
"""Returns a tuple (name, version, arch, mode, platform) where:
- name: A name for the build - the buildbot host if a buildbot.
- version: A version string corresponding to this build.
- - arch: 'dartium' (default) or 'chromium'
+ - component: 'dartium' (default) or 'chromium'
- mode: 'debug' or 'release' (default)
- platform: 'linux' or 'mac'
"""
name = None
version = None
mode = 'release'
- arch = 'dartium'
+ component = 'dartium'
platform = 'linux'
# Populate via builder environment variables.
@@ -56,7 +56,7 @@
pattern = re.match(BUILDER_PATTERN, name)
if pattern:
platform = pattern.group(1)
- arch = pattern.group(2)
+ component = pattern.group(2)
mode = pattern.group(3)
# Fall back if not on builder.
@@ -71,7 +71,7 @@
version = output[0]
else:
version = 'unknown'
- return (name, version, arch, mode, platform)
+ return (name, version, component, mode, platform)
def RunDartcCompiler(client_path, mode, outdir):
@@ -81,7 +81,7 @@
return subprocess.call(
[sys.executable, '../tools/build.py', '--mode=' + mode])
-def RunBrowserTests(client_path, arch, mode, platform):
+def RunBrowserTests(client_path, component, mode, platform):
"""Runs the Dart client tests."""
if platform == 'linux':
cmd = ['xvfb-run']
@@ -90,7 +90,7 @@
# Move to the client directory and call the test script
os.chdir(client_path)
cmd += [sys.executable, '../tools/test.py',
- '--arch=' + arch, '--mode=' + mode,
+ '--component=' + component, '--mode=' + mode,
'--time', '--report', '--progress=buildbot', '-v']
return subprocess.call(cmd)
@@ -119,18 +119,18 @@
'''
return utils.GetBuildRoot(utils.GuessOS(), mode, name)
-def ProcessDartClientTests(srcpath, arch, mode, platform, name):
+def ProcessDartClientTests(srcpath, component, mode, platform, name):
'''
build and test the dart client applications
args:
srcpath - the location of the source code to build
- arch - the architecture we are building for
+ component - the component we are testing against
mode - the mode release or debug
platform - the platform we are building for
'''
print 'ProcessDartClientTests'
- if arch == 'chromium':
+ if component == 'chromium':
print ('@@@BUILD_STEP dartc dart clients: %s@@@' % name)
utils = GetUtils(srcpath)
@@ -139,7 +139,7 @@
if status != 0:
return status
- if arch == 'dartium':
+ if component == 'dartium':
version_file = os.path.join(srcpath, DARTIUM_VERSION_FILE)
if os.path.exists(version_file):
latest = open(version_file, 'r').read()
@@ -148,7 +148,7 @@
print '@@@BUILD_STEP vm r%s (dartium r%s)@@@' % (
match.group(2), match.group(1))
print '@@@BUILD_STEP browser unit tests@@@'
- return RunBrowserTests(srcpath, arch, mode, platform)
+ return RunBrowserTests(srcpath, component, mode, platform)
def ProcessTools(srcpath, mode, name, version):
'''
@@ -199,14 +199,14 @@
scriptdir = os.path.dirname(sys.argv[0])
srcpath = os.path.abspath(os.path.join(scriptdir, '..'))
- (name, version, arch, mode, platform) = GetBuildInfo(srcpath)
+ (name, version, component, mode, platform) = GetBuildInfo(srcpath)
if name == 'dart-editor':
status = ProcessTools(srcpath, mode, name, version)
#TODO(sigmund): remove this indirection once we update out bots
elif name.startswith('frog'):
status = ProcessFrog(srcpath)
else:
- status = ProcessDartClientTests(srcpath, arch, mode, platform, name)
+ status = ProcessDartClientTests(srcpath, component, mode, platform, name)
if status:
print '@@@STEP_FAILURE@@@'
« no previous file with comments | « dart/client/tests/dartc/dartc.status ('k') | dart/compiler/javatests/com/google/dart/corelib/SharedTests.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698