patman: Use python3 with /usr/bin/env
authorSimon Glass <sjg@chromium.org>
Sat, 10 May 2025 11:04:57 +0000 (13:04 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:42 +0000 (10:07 +0100)
If python2 is available then we must specify python3 here. Update the
test to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/func_test.py

index 00aed87..da81101 100644 (file)
@@ -637,7 +637,7 @@ complicated as possible''')
                              'check_patch: False\n'
                              'add_maintainers: True\n', binary=False)
             tools.write_file('dummy-script.sh',
-                             '#!/usr/bin/env python\n'
+                             '#!/usr/bin/env python3\n'
                              'print("hello@there.com")\n', binary=False)
             os.chmod('dummy-script.sh', 0x555)
             tools.run('git', 'add', '.')