summaryrefslogtreecommitdiffstats
path: root/tools/bisect-builds.py
diff options
context:
space:
mode:
authorsbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 05:09:23 +0000
committersbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 05:09:23 +0000
commit7aec9e84ebe1a9ae6894e8b3dc8815b436d84e25 (patch)
treebb08b09d6a97aec89bb0f30a737f7452ad1c42ab /tools/bisect-builds.py
parentd35bf159e3be9b0e3ebd042ec2f73d57fd1ee951 (diff)
downloadchromium_src-7aec9e84ebe1a9ae6894e8b3dc8815b436d84e25.zip
chromium_src-7aec9e84ebe1a9ae6894e8b3dc8815b436d84e25.tar.gz
chromium_src-7aec9e84ebe1a9ae6894e8b3dc8815b436d84e25.tar.bz2
Teach bisect-builds about ARM linux builds
BUG=None TEST=./bisect-builds.py -a linux-arm (on arm/linux machine) Review URL: https://chromiumcodereview.appspot.com/15017014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/bisect-builds.py')
-rwxr-xr-xtools/bisect-builds.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/bisect-builds.py b/tools/bisect-builds.py
index a2bd6f7..356f03c 100755
--- a/tools/bisect-builds.py
+++ b/tools/bisect-builds.py
@@ -75,7 +75,7 @@ class PathContext(object):
# _listing_platform_dir = Directory that holds revisions. Ends with a '/'.
# _archive_extract_dir = Uncompressed directory in the archive_name file.
# _binary_name = The name of the executable to run.
- if self.platform == 'linux' or self.platform == 'linux64':
+ if self.platform in ('linux', 'linux64', 'linux-arm'):
self._binary_name = 'chrome'
elif self.platform == 'mac':
self.archive_name = 'chrome-mac.zip'
@@ -102,13 +102,15 @@ class PathContext(object):
elif self.platform == 'win':
self._listing_platform_dir = 'win/'
else:
- if self.platform == 'linux' or self.platform == 'linux64':
+ if self.platform in ('linux', 'linux64', 'linux-arm'):
self.archive_name = 'chrome-linux.zip'
self._archive_extract_dir = 'chrome-linux'
if self.platform == 'linux':
self._listing_platform_dir = 'Linux/'
elif self.platform == 'linux64':
self._listing_platform_dir = 'Linux_x64/'
+ elif self.platform == 'linux-arm':
+ self._listing_platform_dir = 'Linux_ARM_Cross-Compile/'
elif self.platform == 'mac':
self._listing_platform_dir = 'Mac/'
self._binary_name = 'Chromium.app/Contents/MacOS/Chromium'
@@ -312,8 +314,7 @@ def RunRevision(context, revision, zipfile, profile, num_runs, args):
# Run the build as many times as specified.
testargs = [context.GetLaunchPath(), '--user-data-dir=%s' % profile] + args
# The sandbox must be run as root on Official Chrome, so bypass it.
- if context.is_official and (context.platform == 'linux' or
- context.platform == 'linux64'):
+ if context.is_official and context.platform.startswith('linux'):
testargs.append('--no-sandbox')
for i in range(0, num_runs):
@@ -606,7 +607,7 @@ def main():
'Tip: add "-- --no-first-run" to bypass the first run prompts.')
parser = optparse.OptionParser(usage=usage)
# Strangely, the default help output doesn't include the choice list.
- choices = ['mac', 'win', 'linux', 'linux64']
+ choices = ['mac', 'win', 'linux', 'linux64', 'linux-arm']
# linux-chromiumos lacks a continuous archive http://crbug.com/78158
parser.add_option('-a', '--archive',
choices = choices,