]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Tests/RunTests.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Tests / RunTests.py
index e8ca2d055eaca31033508ffe292085a7b0a201ad..81af736cd8cf8c71af7e803b1db5d06fcd726b99 100644 (file)
@@ -3,13 +3,7 @@
 #\r
 #  Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
 #\r
-#  This program and the accompanying materials\r
-#  are licensed and made available under the terms and conditions of the BSD License\r
-#  which accompanies this distribution.  The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php\r
-#\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 \r
 ##\r
@@ -19,9 +13,14 @@ import os
 import sys\r
 import unittest\r
 \r
-import TestTools\r
+try:\r
+    import distutils.util\r
+except ModuleNotFoundError:\r
+    sys.exit('''\r
+Python reported: "No module named 'distutils.util"\r
+''')\r
 \r
-sys.path.append(TestTools.PythonSourceDir)\r
+import TestTools\r
 \r
 def GetCTestSuite():\r
     import CToolsTests\r