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: _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits