[llvm-branch-commits] [lldb] 53f80d6 - [lldb] Fix logging in lldb-server tests
Pavel Labath via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Dec 28 23:39:58 PST 2020
Author: Pavel Labath
Date: 2020-12-29T08:33:12+01:00
New Revision: 53f80d6b3a01a79a9d448ad117c4b54a15ad08af
URL: https://github.com/llvm/llvm-project/commit/53f80d6b3a01a79a9d448ad117c4b54a15ad08af
DIFF: https://github.com/llvm/llvm-project/commit/53f80d6b3a01a79a9d448ad117c4b54a15ad08af.diff
LOG: [lldb] Fix logging in lldb-server tests
Added:
Modified:
lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
index 71e75adbecb7..91509f609096 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
@@ -126,7 +126,7 @@ def setUp(self):
if self.isVerboseLoggingRequested():
# If requested, full logs go to a log file
self._verbose_log_handler = logging.FileHandler(
- self.log_basename + "-host.log")
+ self.getLogBasenameForCurrentTest() + "-host.log")
self._verbose_log_handler.setFormatter(self._log_formatter)
self._verbose_log_handler.setLevel(logging.DEBUG)
self.logger.addHandler(self._verbose_log_handler)
@@ -166,7 +166,7 @@ def build(self, *args, **kwargs):
self.buildDefault(*args, **kwargs)
def getLocalServerLogFile(self):
- return self.log_basename + "-server.log"
+ return self.getLogBasenameForCurrentTest() + "-server.log"
def setUpServerLogging(self, is_llgs):
if len(lldbtest_config.channels) == 0:
More information about the llvm-branch-commits
mailing list