[dts] [PATCH] Changed output folder to default for auto-regression test
Yong Liu
yong.liu at intel.com
Thu Jul 9 10:02:20 CEST 2015
From: Marvin Liu <yong.liu at intel.com>
Signed-off-by: Marvin Liu <yong.liu at intel.com>
diff --git a/framework/dts.py b/framework/dts.py
index 2d7bf75..2e67e40 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -400,7 +400,7 @@ def run_all(config_file, pkgName, git, patch, skip_setup,
# prepare the output folder
if output_dir == '':
- output_dir = time.strftime("output/%Y_%m_%d_%H_%M_%S")
+ output_dir = FOLDERS['Output']
if not os.path.exists(output_dir):
os.mkdir(output_dir)
diff --git a/framework/logger.py b/framework/logger.py
index 5597e33..03057b8 100644
--- a/framework/logger.py
+++ b/framework/logger.py
@@ -35,7 +35,7 @@ import sys
import inspect
import re
-from settings import LOG_NAME_SEP
+from settings import LOG_NAME_SEP, FOLDERS
from utils import RED
"""
@@ -201,7 +201,7 @@ class DTSLOG(BaseLoggerAdapter):
self.debug_lvl = logging.DEBUG
if log_dir is None:
- self.log_path = os.getcwd() + "/../output"
+ self.log_path = os.getcwd() + "/../" + FOLDERS['Output']
else:
self.log_path = log_dir # log dir should contain tag/crb global value and mod in dts
self.dts_log = "dts.log"
diff --git a/framework/settings.py b/framework/settings.py
index 3a70804..69164d8 100644
--- a/framework/settings.py
+++ b/framework/settings.py
@@ -39,6 +39,7 @@ FOLDERS = {
'Framework': 'framework',
'Testscripts': 'tests',
'Configuration': 'conf',
+ 'Output': 'output',
}
"""
--
1.9.3
More information about the dts
mailing list