From: Simon Glass Date: Sat, 10 May 2025 11:04:57 +0000 (+0200) Subject: patman: Use python3 with /usr/bin/env X-Git-Tag: v2025.10-rc1~118^2~69^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77177ba82f12e8b4422c23414d7a68ba9a3f6e20;p=thirdparty%2Fu-boot.git patman: Use python3 with /usr/bin/env If python2 is available then we must specify python3 here. Update the test to handle this. Signed-off-by: Simon Glass --- diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index 00aed8786e8..da81101ea93 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -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', '.')