Skip to content

Commit e076972

Browse files
authored
Change /usr/bin/python -> /usr/bin/env python in tests (#23)
This was needed to get some of the tests passing when using venv (my system doesn't have python3 symlinked to /usr/bin/python, but venv will stick it on the PATH), and it seems to be what PEP 394 recommends: https://peps.python.org/pep-0394/#for-python-script-publishers
1 parent 2b8a708 commit e076972

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

tests/runtest/Inputs/test-suite-cmake/fake-lit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import argparse, shutil
44
parser = argparse.ArgumentParser(description='dummy lit')

tests/runtest/Inputs/test-suite-cmake/fake-lit-fails-compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import argparse, shutil, sys
44
parser = argparse.ArgumentParser(description='dummy lit')

tests/runtest/Inputs/test-suite-cmake/fake-lit-fails-exec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import argparse, shutil, sys
44
parser = argparse.ArgumentParser(description='dummy lit')
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import argparse, shutil
44
parser = argparse.ArgumentParser(description='dummy lit')
@@ -8,4 +8,4 @@ parser.add_argument('bar')
88
args, _ = parser.parse_known_args()
99

1010
shutil.copyfile(args.bar + '/fake-results-profile.json', args.o
11-
)
11+
)

tests/runtest/Inputs/test-suite-cmake/fake-lit-profile-import

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import argparse, shutil
44
parser = argparse.ArgumentParser(description='dummy lit')

0 commit comments

Comments
 (0)