test suite reviews and discussions
 help / color / mirror / Atom feed
* [PATCH V1] framework/logger: fix bug of generate the log output path
@ 2022-04-20  7:04 Jun Dong
  2022-04-20  7:54 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Jun Dong @ 2022-04-20  7:04 UTC (permalink / raw)
  To: dts; +Cc: lijuan.tu, qingx.sun, junx.dong

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 <junx.dong@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH V1] framework/logger: fix bug of generate the log output path
  2022-04-20  7:04 [PATCH V1] framework/logger: fix bug of generate the log output path Jun Dong
@ 2022-04-20  7:54 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2022-04-20  7:54 UTC (permalink / raw)
  To: dts, Jun Dong; +Cc: lijuan.tu, qingx.sun, junx.dong

On Wed, 20 Apr 2022 15:04:20 +0800, Jun Dong <junx.dong@intel.com> wrote:
> 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 <junx.dong@intel.com>


Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-20  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20  7:04 [PATCH V1] framework/logger: fix bug of generate the log output path Jun Dong
2022-04-20  7:54 ` lijuan.tu

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).