[dotest] make debug info variant accessible in setUp()
authorPavel Labath <labath@google.com>
Mon, 5 Feb 2018 11:30:46 +0000 (11:30 +0000)
committerPavel Labath <labath@google.com>
Mon, 5 Feb 2018 11:30:46 +0000 (11:30 +0000)
commit55790fb7f8cbd939ed89693db6b80491bcea2be8
tree4d57ac36afb02dd114ac1004712de03577eb5968
parent14c979da329daf35ebc99a0bd11581b0b081d813
[dotest] make debug info variant accessible in setUp()

Summary:
This changes the way we store the debug info variant to make it
available earlier in the test bringup: instead of it being set by the
test wrapper method, it is set as a *property* of the wrapper method.

This way, we can inspect it as soon as self.testMethodName is
initialized. The retrieval is implemented by a new function
TestBase.getDebugInfo(), and all that's necessary to make it work is to
change self.debug_info into self.getDebugInfo().

While searching for debug_info occurences i noticed that TestLogging is
being replicated for no good reason, so I removed the replication there.

Reviewers: aprantl, jingham

Subscribers: eraman, JDevlieghere, lldb-commits

Differential Revision: https://reviews.llvm.org/D42836

llvm-svn: 324226
lldb/packages/Python/lldbsuite/test/decorators.py
lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
lldb/packages/Python/lldbsuite/test/lldbinline.py
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/packages/Python/lldbsuite/test/logging/TestLogging.py