1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[lit] Make main.py a pure Python module

Running it directly as a tool, that is what lit.py is for.
This commit is contained in:
Julian Lettner 2019-10-25 18:51:29 -07:00
parent 9aa42cfd01
commit 550eee0284
2 changed files with 3 additions and 9 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python
import sys
from lit.main import main
import lit.main
if __name__=='__main__':
main()
if __name__ == '__main__':
lit.main()

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python
"""
lit - LLVM Integrated Tester.
@ -381,6 +379,3 @@ def write_test_results_xunit(tests, opts):
xunit_output_file.write("</testsuite>\n")
xunit_output_file.write("</testsuites>")
xunit_output_file.close()
if __name__=='__main__':
main()