diff mbox series

[V5,2/3] framework: check the python version

Message ID 20201023092549.33439-3-yufengx.mo@intel.com (mailing list archive)
State Accepted
Headers show
Series framework: check the python version | expand

Commit Message

yufengmx Oct. 23, 2020, 9:25 a.m. UTC
check the python version of the server that run dts. If the version is lower than 3.6.9, print a warning message.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
 framework/dts.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series


diff --git a/framework/dts.py b/framework/dts.py
index 4fcec3a..697602d 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -58,7 +58,8 @@  import logger
 import debugger
 from config import CrbsConf
 from checkCase import CheckCase
-from utils import get_subclasses, copy_instance_attr, create_parallel_locks
+from utils import (get_subclasses, copy_instance_attr, create_parallel_locks,
+                   check_dts_python_version)
 import sys
 import imp
@@ -505,6 +506,9 @@  def run_all(config_file, pkgName, git, patch, skip_setup,
     global log_handler
     global check_case_inst
+    # check the python version of the server that run dts 
+    check_dts_python_version()
     # save global variable
     serializer = Serializer()