From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 4DE9A5A52 for ; Thu, 9 Jul 2015 10:02:28 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 09 Jul 2015 01:02:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,438,1432623600"; d="scan'208";a="725568042" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 09 Jul 2015 01:02:26 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6982OgU001567; Thu, 9 Jul 2015 16:02:24 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t6982LMi000615; Thu, 9 Jul 2015 16:02:24 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6982LOt000611; Thu, 9 Jul 2015 16:02:21 +0800 From: Yong Liu To: dts@dpdk.org Date: Thu, 9 Jul 2015 16:02:20 +0800 Message-Id: <1436428940-579-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Changed output folder to default for auto-regression test X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2015 08:02:28 -0000 From: Marvin Liu Signed-off-by: Marvin Liu 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