]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Tests/TestTools.py
Fix the comments to follow UEFI Spec regarding how to check an EFI_HANDLE is valid...
[mirror_edk2.git] / BaseTools / Tests / TestTools.py
index 4a581198a4318f0c0905338ae1fa1813290ef68f..4a70e92bcdd03d874a451edfb84405576052824e 100644 (file)
@@ -1,9 +1,9 @@
 ## @file
 # Utility functions and classes for BaseTools unit tests
 #
-#  Copyright (c) 2008, Intel Corporation
+#  Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
 #
-#  All rights reserved. This program and the accompanying materials
+#  This program and the accompanying materials
 #  are licensed and made available under the terms and conditions of the BSD License
 #  which accompanies this distribution.  The full text of the license may be found at
 #  http://opensource.org/licenses/bsd-license.php
@@ -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 (' ', '/'):