[V3,2/3] framework: check the python version
Commit Message
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(-)
@@ -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()