<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lit test suite can no longer be run stand-alone"
   href="https://bugs.llvm.org/show_bug.cgi?id=42812">42812</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lit test suite can no longer be run stand-alone
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mgorny@gentoo.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>42474
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 <a href="https://reviews.llvm.org/D61798">https://reviews.llvm.org/D61798</a> but received no
reply.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [meta] 9.0.0 Release Blockers"
   href="https://bugs.llvm.org/show_bug.cgi?id=42474">Bug 42474</a>] [meta] 9.0.0 Release Blockers
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>