diff options
author | prasadv <prasadv@chromium.org> | 2015-05-26 10:01:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-26 17:02:14 +0000 |
commit | 056a7a7786a32196e2c7ff36e31c331a9e5593ab (patch) | |
tree | d1f9e19f020502ff2d371570f873ccd1141b3a93 /tools/auto_bisect | |
parent | 395a219b1af7bfbd5f1e4741998285b21565d571 (diff) | |
download | chromium_src-056a7a7786a32196e2c7ff36e31c331a9e5593ab.zip chromium_src-056a7a7786a32196e2c7ff36e31c331a9e5593ab.tar.gz chromium_src-056a7a7786a32196e2c7ff36e31c331a9e5593ab.tar.bz2 |
Make sure that arm64 binaries are used when target_arch is set to arm64.
BUG=488688
Review URL: https://codereview.chromium.org/1143923002
Cr-Commit-Position: refs/heads/master@{#331382}
Diffstat (limited to 'tools/auto_bisect')
-rw-r--r-- | tools/auto_bisect/fetch_build.py | 10 | ||||
-rw-r--r-- | tools/auto_bisect/fetch_build_test.py | 8 |
2 files changed, 16 insertions, 2 deletions
diff --git a/tools/auto_bisect/fetch_build.py b/tools/auto_bisect/fetch_build.py index b4036ac..b066646 100644 --- a/tools/auto_bisect/fetch_build.py +++ b/tools/auto_bisect/fetch_build.py @@ -123,7 +123,10 @@ class BuildArchive(object): extra_src=None): self._extra_src = extra_src if bisect_utils.IsLinuxHost() and target_platform == 'android': - self._platform = 'android' + if target_arch == 'arm64': + self._platform = 'android_arm64' + else: + self._platform = 'android' elif bisect_utils.IsLinuxHost() and target_platform == 'android-chrome': self._platform = 'android-chrome' elif bisect_utils.IsLinuxHost(): @@ -178,7 +181,7 @@ class BuildArchive(object): if self._platform in ('win', 'win64'): # Build archive for win64 is still stored with "win32" in the name. return 'win32' - if self._platform in ('linux', 'android'): + if self._platform in ('linux', 'android', 'android_arm64'): # Android builds are also stored with "linux" in the name. return 'linux' if self._platform == 'mac': @@ -215,6 +218,7 @@ class PerfBuildArchive(BuildArchive): """Returns the directory name to download builds from.""" platform_to_directory = { 'android': 'android_perf_rel', + 'android_arm64': 'android_perf_rel_arm64', 'linux': 'Linux Builder', 'mac': 'Mac Builder', 'win64': 'Win x64 Builder', @@ -233,6 +237,8 @@ class PerfBuildArchive(BuildArchive): return 'linux_perf_bisect_builder' elif self._platform == 'android': return 'android_perf_bisect_builder' + elif self._platform == 'android_arm64': + return 'android_arm64_perf_bisect_builder' elif self._platform == 'mac': return 'mac_perf_bisect_builder' raise NotImplementedError('Unsupported platform "%s".' % sys.platform) diff --git a/tools/auto_bisect/fetch_build_test.py b/tools/auto_bisect/fetch_build_test.py index 4c821cb..88bb9e2 100644 --- a/tools/auto_bisect/fetch_build_test.py +++ b/tools/auto_bisect/fetch_build_test.py @@ -101,6 +101,14 @@ class BuildArchiveTest(unittest.TestCase): 'android_perf_rel/full-build-linux_123456.zip', archive.FilePath('123456')) + def test_PerfBuildArchive_AndroidArm64(self): + archive = fetch_build.PerfBuildArchive() + archive._platform = 'android_arm64' + self.assertEqual('chrome-perf', archive.BucketName()) + self.assertEqual( + 'android_perf_rel_arm64/full-build-linux_123456.zip', + archive.FilePath('123456')) + def test_PerfBuildArchive_64BitWindows(self): archive = fetch_build.PerfBuildArchive(target_arch='x64') archive._platform = 'win64' |