Bug 1532434: don't hardcode host-utils path r=gbrown
authorAndrew Erickson <aerickson@mozilla.com>
Mon, 11 Mar 2019 15:02:03 +0000
changeset 521381 b761a7b69aba
parent 521380 ee2473319e97
child 521382 9c46b805faeb
push id10866
push usernerli@mozilla.com
push dateTue, 12 Mar 2019 18:59:09 +0000
treeherdermozilla-beta@445c24a51727 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1532434: don't hardcode host-utils path r=gbrown Differential Revision: https://phabricator.services.mozilla.com/D22019
--- a/testing/mozbase/mozproxy/mozproxy/backends/mitm.py
+++ b/testing/mozbase/mozproxy/mozproxy/backends/mitm.py
@@ -1,14 +1,15 @@
 """Functions to download, install, setup, and use the mitmproxy playback tool"""
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 from __future__ import absolute_import
+import glob
 import os
 import subprocess
 import sys
 import time
 import mozinfo
 from mozprocess import ProcessHandler
@@ -422,17 +423,17 @@ class MitmproxyAndroid(Mitmproxy):
             if not have_manifest:
                 LOG.critical('failed to download the hostutils tooltool manifest')
             # now use the manifest to download hostutils so we can get certutil
             tooltool_download(_dest, self.config['run_local'], self.mozproxy_dir)
             # the production bitbar container host is always linux
-            self.certutil = os.path.join(self.mozproxy_dir, 'host-utils-67.0a1.en-US.linux-x86_64')
+            self.certutil = glob.glob(os.path.join(self.mozproxy_dir, 'host-utils*[!z]'))[0]
             # must add hostutils/certutil to the path
             os.environ['LD_LIBRARY_PATH'] = self.certutil
         bin_suffix = mozinfo.info.get('bin_suffix', '')
         self.certutil = os.path.join(self.certutil, "certutil" + bin_suffix)
         if os.path.isfile(self.certutil):