diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2019-02-28 21:19:09 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-03-01 09:32:27 +0800 |
commit | 407f5a0571d186bbfa0ac2e46ce63f4701063b86 (patch) | |
tree | 5990fba67be02a93c1b20abee105f814e862f248 | |
parent | ece4c1de3e7b2340d351c2054c79ea689a954ed6 (diff) | |
download | edk2-407f5a0571d186bbfa0ac2e46ce63f4701063b86.zip edk2-407f5a0571d186bbfa0ac2e46ce63f4701063b86.tar.gz edk2-407f5a0571d186bbfa0ac2e46ce63f4701063b86.tar.bz2 |
BaseTools: Add python3-distutils Ubuntu package checking
https://bugzilla.tianocore.org/show_bug.cgi?id=1509
Add python3-distutils Ubuntu package checking.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
-rw-r--r-- | BaseTools/Tests/RunTests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/BaseTools/Tests/RunTests.py b/BaseTools/Tests/RunTests.py index 0dd6563..057bdff 100644 --- a/BaseTools/Tests/RunTests.py +++ b/BaseTools/Tests/RunTests.py @@ -19,6 +19,13 @@ import os import sys
import unittest
+try:
+ import distutils.util
+except ModuleNotFoundError:
+ sys.exit('''
+Python reported: "No module named 'distutils.util"
+''')
+
import TestTools
def GetCTestSuite():
|