<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/65173>65173</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb command_relative_import.test fails when lit syntax is corrected
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lldb
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          DavidSpickett
      </td>
    </tr>
</table>

<pre>
    `lldb/test/Shell/ScriptInterpreter/Python/command_relative_import.test` has a few mistakes like missing ":" after some "RUN" and missing "\" after split lines.

However if I correct those it fails with:
```
           16: error: module importing failed: Python does not allow dots in module names: baz.hello
           17: (lldb) command source /home/david.spickett/build-llvm-aarch64/tools/lldb/test/Shell/ScriptInterpreter/Python/Output/command_relative_import.test.tmp/foo/magritte.in
 18: Executing commands in '/home/david.spickett/build-llvm-aarch64/tools/lldb/test/Shell/ScriptInterpreter/Python/Output/command_relative_import.test.tmp/foo/magritte.in'.
 19: (lldb) command script import magritte
           20: (lldb) zip
           21: 95126
check:19'0          X error: no match found
           22: (lldb) hello
check:19'0     ~~~~~~~~~~~~~
 23: error: 'hello' is not a valid command.
check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:19'1             ? possible intended match
>>>>>>
```

And I am not sure how to fix that. In normal python3 interpreter you can certainly do `from foo.bar.test import *`. So I assume lldb is doing something slightly different here, perhaps an Python API call that was ok in 2 but not 3.

573531fb1f529b1413b789fa9eee11c7b41ac83d tried to fix this blindy but reverted it in da0b62dfb3ca597f618b1f88226b440bc7ca3960 when it started failing.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVU2P2zYT_jX0ZRBBImXJOvjgN4nw7qUNGhToLSDFocUuRQrkyI5zyG8vKNvYze72A72VEPTF-eDMM_OMTMkePeKebf_Hth82cqExxP0HebL682yHRyTaqKAve9aUzmnFe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