Bug 1671650 - Check for Chrome in Progra~1 and Progra~2 on windows. r=perftest-reviewers,Bebe

Differential Revision: https://phabricator.services.mozilla.com/D93836
This commit is contained in:
Gregory Mierzwinski 2020-10-19 12:21:54 +00:00
Родитель 4dd77eeb91
Коммит 4d455be744
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -534,7 +534,10 @@ class Raptor(TestingMixin, MercurialScript, CodeCoverageMixin, AndroidMixin, Pyt
if self.app == 'chrome':
self.info("Chrome should be preinstalled.")
if win in self.platform_name():
self.chromium_dist_path = "C:\\Progra~2\\Google\\Chrome\\Application\\chrome.exe"
base_path = "C:\\%s\\Google\\Chrome\\Application\\chrome.exe"
self.chromium_dist_path = base_path % "Progra~1"
if not os.path.exists(self.chromium_dist_path):
self.chromium_dist_path = base_path % "Progra~2"
elif linux in self.platform_name():
self.chromium_dist_path = "/usr/bin/google-chrome"
elif mac in self.platform_name():