]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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 00aed8786e8157501200b481ecd8fe8a4fdad15d..da81101ea936750429e3d6c5cbad6759ca6ea168 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', '.')