[llvm-bugs] [Bug 42812] New: lit test suite can no longer be run stand-alone

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 29 07:50:55 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42812

            Bug ID: 42812
           Summary: lit test suite can no longer be run stand-alone
           Product: new-bugs
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mgorny at gentoo.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
            Blocks: 42474

Since r361998 lit test suite (i.e. tests of lit itself) no longer work when run
standalone.  This is unfortunate for us since we package lit separately, and do
not wish to have to configure whole LLVM in order to test it.

$ lit -v tests
lit: /usr/lib/python3.7/site-packages/lit/TestingConfig.py:102: fatal: unable
to parse config file
'/home/mgorny/git/llvm-project/llvm/utils/lit/tests/lit.cfg', traceback:
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/lit/TestingConfig.py", line 89, in
load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "/home/mgorny/git/llvm-project/llvm/utils/lit/tests/lit.cfg", line 38,
in <module>
    llvm_config.with_environment('PYTHONPATH', lit_path, append_path=True)
AttributeError: 'NoneType' object has no attribute 'with_environment'


I've pointed the issue out in https://reviews.llvm.org/D61798 but received no
reply.


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=42474
[Bug 42474] [meta] 9.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190729/984e4e17/attachment.html>


More information about the llvm-bugs mailing list