[Lldb-commits] [PATCH] D20193: test infra: catch bad decorators and import-time errors

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri May 13 13:10:38 PDT 2016


Well, I have to copy use_lldb_suite.py into lldbsuite/test_event first.
But then I get another error.

D:\src\llvm\tools\lldb\packages\Python\lldbsuite\test_event>c:\Python35\python.exe
-m unittest discover -s test/src -p "Test*.py"
FF
======================================================================
FAIL: test_with_function_filter
(TestCatchInvalidDecorator.TestCatchInvalidDecorator)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"D:\src\llvm\tools\lldb\packages\Python\lldbsuite\test_event\test\src\TestCatchInvalidDecorator.py",
line 56, in test_with_function_filter
    "At least one job or test error result should have been returned")
AssertionError: 0 not greater than 0 : At least one job or test error
result should have been returned

======================================================================
FAIL: test_with_whole_file
(TestCatchInvalidDecorator.TestCatchInvalidDecorator)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"D:\src\llvm\tools\lldb\packages\Python\lldbsuite\test_event\test\src\TestCatchInvalidDecorator.py",
line 37, in test_with_whole_file
    "At least one job or test error result should have been returned")
AssertionError: 0 not greater than 0 : At least one job or test error
result should have been returned

On Fri, May 13, 2016 at 12:52 PM Todd Fiala <todd.fiala at gmail.com> wrote:

> tfiala added a comment.
>
> In http://reviews.llvm.org/D20193#429903, @zturner wrote:
>
> > It can't find six, I guess because it's trying to run a script directly
> >  rather than loading it as part of a package, so it never runs `import
> >  use_lldb_suite`.
>
>
> Ah of course.  And this runs on OS X because six is part of the default
> Python site installation.
>
> So an 'import use_lldb_suite' at the top of the event_collector file fixes
> it for you?
>
>
> http://reviews.llvm.org/D20193
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160513/607a85ad/attachment.html>


More information about the lldb-commits mailing list