1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

[UpdateTestChecks] Change shebang from python to python3

'python' means Python 2 on some platforms while Python 3 on others.
'python3' is Python 3 only. Python 2.7 End of Life is set to January 1,
2020. Getting rid of Python 2 support reduces maintenance burden.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D70730
This commit is contained in:
Fangrui Song 2019-11-26 10:40:52 -08:00
parent c7d943befd
commit f85acb39ab
5 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""A script to generate FileCheck statements for 'opt' analysis tests. """A script to generate FileCheck statements for 'opt' analysis tests.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""A test case update script. """A test case update script.
@ -45,7 +45,7 @@ def main():
for test in test_paths: for test in test_paths:
with open(test) as f: with open(test) as f:
input_lines = [l.rstrip() for l in f] input_lines = [l.rstrip() for l in f]
first_line = input_lines[0] if input_lines else "" first_line = input_lines[0] if input_lines else ""
if 'autogenerated' in first_line and script_name not in first_line: if 'autogenerated' in first_line and script_name not in first_line:
common.warn("Skipping test which wasn't autogenerated by " + script_name, test) common.warn("Skipping test which wasn't autogenerated by " + script_name, test)

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""A test case update script. """A test case update script.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""Updates FileCheck checks in MIR tests. """Updates FileCheck checks in MIR tests.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""A script to generate FileCheck statements for 'opt' regression tests. """A script to generate FileCheck statements for 'opt' regression tests.