bug 1244746 - silence mozharness pip upgrade errors in pip freeze. r?jlund draft
authorAki Sasaki <asasaki@mozilla.com>
Tue, 03 May 2016 16:32:22 -0700
changeset 363108 49132010f819143ff55de654d16e1d7dba573e64
parent 363107 fe4249543b914e5a8e4106f181a3c0f993ed842a
child 519939 e9c4df436ec0634b6941af0967e1a3035ff142cc
push id17100
push userasasaki@mozilla.com
push dateTue, 03 May 2016 23:52:58 +0000
reviewersjlund
bugs1244746
milestone49.0a1
bug 1244746 - silence mozharness pip upgrade errors in pip freeze. r?jlund MozReview-Commit-ID: BXj1GYHHkgn
testing/mozharness/mozharness/base/python.py
--- a/testing/mozharness/mozharness/base/python.py
+++ b/testing/mozharness/mozharness/base/python.py
@@ -152,17 +152,19 @@ class VirtualenvMixin(object):
         packages = {}
 
         if pip_freeze_output is None:
             # get the output from `pip freeze`
             pip = self.query_python_path("pip")
             if not pip:
                 self.log("package_versions: Program pip not in path", level=error_level)
                 return {}
-            pip_freeze_output = self.get_output_from_command([pip, "freeze"], silent=True)
+            pip_freeze_output = self.get_output_from_command(
+                [pip, "--disable-pip-version-check", "freeze"], silent=True
+            )
             if not isinstance(pip_freeze_output, basestring):
                 self.fatal("package_versions: Error encountered running `pip freeze`: %s" % pip_freeze_output)
 
         for line in pip_freeze_output.splitlines():
             # parse the output into package, version
             line = line.strip()
             if not line:
                 # whitespace