From: Yong Liu <yong.liu@intel.com>
To: dts@dpdk.org
Subject: [dts] [PATCH] Changed output folder to default for auto-regression test
Date: Thu, 9 Jul 2015 16:02:20 +0800 [thread overview]
Message-ID: <1436428940-579-1-git-send-email-yong.liu@intel.com> (raw)
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
reply other threads:[~2015-07-09 8:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436428940-579-1-git-send-email-yong.liu@intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).