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 <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-05-10 13:04:57 +02:00
parent 31a1c4c9d8
commit 77177ba82f

View 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', '.')