test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] Changed output folder to default for auto-regression test
@ 2015-07-09  8:02 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-09  8:02 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 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-09  8:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09  8:02 [dts] [PATCH] Changed output folder to default for auto-regression test 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).