* [dts] [PATCH] raise exception when load execution file failed
@ 2015-09-15 5:29 Yong Liu
0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-09-15 5:29 UTC (permalink / raw)
To: dts
From: Marvin Liu <yong.liu@intel.com>
Signed-off-by: Marvin Liu <yong.liu@intel.com>
diff --git a/framework/dts.py b/framework/dts.py
index 33ac542..d2ee015 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -51,7 +51,7 @@ from test_result import Result
from stats_reporter import StatsReporter
from excel_reporter import ExcelReporter
from utils import *
-from exception import TimeoutException
+from exception import TimeoutException, ConfigParseException
from logger import getLogger
import logger
import debugger
@@ -441,7 +441,9 @@ def run_all(config_file, pkgName, git, patch, skip_setup,
# Read config file
config = ConfigParser.SafeConfigParser()
- config.read(config_file)
+ load_cfg = config.read(config_file)
+ if len(load_cfg) == 0:
+ raise ConfigParseException(config_file)
# register exit action
atexit.register(close_crb_sessions)
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-15 5:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-15 5:29 [dts] [PATCH] raise exception when load execution file failed Yong Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).