[lit] allow find git usr bin in path directly. (#5385)

This is for case where git usr bin is not in winreg.
This commit is contained in:
Xiang Li 2023-07-03 13:31:29 -04:00
Родитель 2f58557f49
Коммит fed08e5c0d
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -64,7 +64,10 @@ class TestingConfig:
if sys.platform == 'win32':
required_tools = [
'cmp.exe', 'grep.exe', 'sed.exe', 'diff.exe', 'echo.exe', 'ls.exe']
path = _find_git_windows_unix_tools(required_tools)
path = lit.util.whichTools(required_tools, all_path)
if path is None:
path = _find_git_windows_unix_tools(required_tools)
all_path = f"{path};{all_path}"
environment = {
'PATH' : all_path,