unit tests: Fix CI failures in NativeFileTests

We can't rely on 'py' always being available in PATH, use
sys.executable which is the real path to Python 3.
pull/5627/head
Nirbheek Chauhan 6 years ago committed by Nirbheek Chauhan
parent fb4c95a322
commit 716140ddb4
  1. 2
      run_unittests.py

@ -5881,7 +5881,7 @@ class NativeFileTests(BasePlatformTests):
if mesonbuild.environment.detect_msys2_arch():
f.write(r'@python3 {} %*'.format(filename))
else:
f.write('@py -3 {} %*'.format(filename))
f.write('@{} {} %*'.format(sys.executable, filename))
return batfile
def helper_for_compiler(self, lang, cb, for_machine = MachineChoice.HOST):

Loading…
Cancel
Save