[Lldb-commits] [lldb] r323803 - Compile the LLDB tests out-of-tree.

Vedant Kumar via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 28 18:46:10 PST 2018


Hey Adrian,

Did you mean to write cls.getBuildArtifact() here?

I'm seeing a Python exception locally when I run check-lldb-single:

Traceback (most recent call last):
  File "/Users/vsk/src/llvm.org-lldbsan/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 584, in tearDownClass
    cls.classCleanup()
  File "/Users/vsk/src/llvm.org-lldbsan/llvm/tools/lldb/packages/Python/lldbsuite/test/settings/quoting/TestQuoting.py", line 25, in classCleanup
    cls.RemoveTempFile(self.getBuildArtifact("stdout.txt"))
NameError: global name 'self' is not defined

vedant

> On Jan 30, 2018, at 10:29 AM, Adrian Prantl via lldb-commits <lldb-commits at lists.llvm.org> wrote:
> 
> ==============================================================================
> --- lldb/trunk/packages/Python/lldbsuite/test/settings/quoting/TestQuoting.py (original)
> +++ lldb/trunk/packages/Python/lldbsuite/test/settings/quoting/TestQuoting.py Tue Jan 30 10:29:16 2018
> @@ -22,7 +22,7 @@ class SettingsCommandTestCase(TestBase):
>     @classmethod
>     def classCleanup(cls):
>         """Cleanup the test byproducts."""
> -        cls.RemoveTempFile("stdout.txt")
> +        cls.RemoveTempFile(self.getBuildArtifact("stdout.txt"))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180228/ac6a5dd1/attachment.html>


More information about the lldb-commits mailing list