From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6036DA00BE; Wed, 20 Apr 2022 09:04:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 344A04068E; Wed, 20 Apr 2022 09:04:32 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 64A0740687 for ; Wed, 20 Apr 2022 09:04:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650438270; x=1681974270; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JFTYrSxId87nBFACDfGPm1VY8EQgEwFq33t6I2rXyjg=; b=bov158+Pv3LJoWIRnAzhr6d3hCT2KpiPCjd18kezqtURMhKmt7Vp957H 5IS2YBoIaXj0q2CgqxA/IP7eobBfMUUxKJq95CeFr1Zm7y6nWZHwnVtOM ZlCH3cGAU3JtKCwzoOLL7BPQqMEVhX3xFOQv8LX/KnEh3fLvEauSumXfO PnalViXRhukKAfHqyCXQU9Lb1gTIKO6A6HwEaN95oOkwh62mKe7feh2uV 7K57yOvIrgvk2KiFz2Oa8jgBNpGjt4HRjEVNPJ3HPDMkwBT3cQjJJXyl0 8DdfkF0gs2qMa0cobDOcbzZhy6nnTgoIDh8xK9+pvc2rrOXF7/zGOXSoG A==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="324399043" X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="324399043" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 00:04:29 -0700 X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="614308975" Received: from shwdenpg197.ccr.corp.intel.com ([10.253.109.70]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 00:04:27 -0700 From: Jun Dong To: dts@dpdk.org Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com Subject: [PATCH V1] framework/logger: fix bug of generate the log output path Date: Wed, 20 Apr 2022 15:04:20 +0800 Message-Id: <20220420070420.3574-1-junx.dong@intel.com> X-Mailer: git-send-email 2.33.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org First, the log default path was generated based main script's directory. When modifying the standard project, we moved main script from framework sub directory to base directory, but no synchronous change the log patch generate rule. This patch fixed it. Signed-off-by: Jun Dong --- framework/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/logger.py b/framework/logger.py index 576a51dc..774ab9c4 100644 --- a/framework/logger.py +++ b/framework/logger.py @@ -194,7 +194,7 @@ class DTSLOG(BaseLoggerAdapter): self.debug_lvl = logging.DEBUG if log_dir is None: - self.log_path = os.getcwd() + "/../" + FOLDERS["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 -- 2.25.1