[feature] check if vtest.conf exists

Signed-off-by: zhangtianli2006 <zhangtianli2006@163.com>
This commit is contained in:
zhangtianli2006 2021-08-25 13:45:33 +08:00
parent ee500e6510
commit fc72ff4cd1
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ def check_file(file_path: str, err_msg: str):
task_cnt = []
check_file("vtest.conf", "[ERR] Configure file 'vtest.conf' not found.")
vconf = open("vtest.conf", "r")
name, sub_tasks = vconf.readline().split()

View File

@ -26,6 +26,7 @@ def check_file(file_path: str, err_msg: str):
task_cnt = []
check_file("vtest.conf", "[ERR] Configure file 'vtest.conf' not found.")
vconf = open("vtest.conf", "r")
name, sub_tasks = vconf.readline().split()