diff options
Diffstat (limited to 'BaseTools/Tests')
-rw-r--r-- | BaseTools/Tests/TestTools.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/BaseTools/Tests/TestTools.py b/BaseTools/Tests/TestTools.py index 4a581198a4..72e42461da 100644 --- a/BaseTools/Tests/TestTools.py +++ b/BaseTools/Tests/TestTools.py @@ -44,6 +44,11 @@ def MakeTheTestSuite(localItems): def GetBaseToolsPath(): if sys.platform in ('win32', 'win64'): return os.path.join(BaseToolsDir, 'Bin', sys.platform.title()) + elif sys.platform in ('cygwin'): + uname = os.popen('uname -sm').read().strip() + for char in (' ', '/'): + uname = uname.replace(char, '-') + return os.path.join(BaseToolsDir, 'Bin', uname) else: uname = os.popen('uname -sm').read().strip() for char in (' ', '/'): |