[V2,2/3] framework: check the python version
diff mbox series

Message ID 20201014071448.32119-3-yufengx.mo@intel.com
State New
Headers show
Series
  • framework: check the python version
Related show

Commit Message

Mo, YufengX Oct. 14, 2020, 7:14 a.m. UTC
check the python version of the server that run dts. If the version is python2, print a warning message.

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

Patch
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
 imp.reload(sys)
@@ -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()