Bug 1497898 - Handle WindowsError trying to determine if git exists, r=ato
authorJames Graham <james@hoppipolla.co.uk>
Fri, 16 Nov 2018 18:48:43 +0000
changeset 503259 3dedddeb0c8d6847d9c7cb7074d7d06186182663
parent 503258 1a0c1f962ae46cb9669622d0ed5321398bb0de99
child 503260 6875c54fd481eeb715a96474b5babb2734423d04
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1497898
milestone65.0a1
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 1497898 - Handle WindowsError trying to determine if git exists, r=ato Depends on D8232 Differential Revision: https://phabricator.services.mozilla.com/D10743
testing/web-platform/tests/tools/manifest/vcs.py
--- a/testing/web-platform/tests/tools/manifest/vcs.py
+++ b/testing/web-platform/tests/tools/manifest/vcs.py
@@ -57,17 +57,17 @@ class Git(object):
         return git
 
     @classmethod
     def for_path(cls, path, url_base, cache_path, manifest_path=None, rebuild=False):
         git = Git.get_func(path)
         try:
             return cls(git("rev-parse", "--show-toplevel").rstrip(), url_base, cache_path,
                        manifest_path=manifest_path, rebuild=rebuild)
-        except subprocess.CalledProcessError:
+        except (subprocess.CalledProcessError, OSError):
             return None
 
     def _local_changes(self):
         changes = {}
         cmd = ["status", "-z", "--ignore-submodules=all"]
         data = self.git(*cmd)
 
         if data == "":