Update web-platform-tests to revision 3678c44dfe811f93a796285e9531ee34d7d15682

This commit is contained in:
WPT Sync Bot 2018-02-27 20:17:24 -05:00
parent 6fbf2c1e3c
commit b3ccbe1a35
27 changed files with 808 additions and 100 deletions

View file

@ -14,7 +14,11 @@ class Git(object):
def get_func(repo_path):
def git(cmd, *args):
full_cmd = ["git", cmd] + list(args)
return subprocess.check_output(full_cmd, cwd=repo_path, stderr=subprocess.STDOUT)
try:
return subprocess.check_output(full_cmd, cwd=repo_path, stderr=subprocess.STDOUT)
except WindowsError:
full_cmd[0] = "git.bat"
return subprocess.check_output(full_cmd, cwd=repo_path, stderr=subprocess.STDOUT)
return git
@classmethod