diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-07-09 18:18:57 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-07-09 19:28:51 +0530 |
commit | 716140ddb4f108dac2c2395e24e9ca17d68593d5 (patch) | |
tree | 05a94a3c581d33c7ca779b3a5e8a41711f2d5bb6 /run_unittests.py | |
parent | fb4c95a32207e3ec0f7f18a3956da34d45b029a4 (diff) | |
download | meson-716140ddb4f108dac2c2395e24e9ca17d68593d5.zip meson-716140ddb4f108dac2c2395e24e9ca17d68593d5.tar.gz meson-716140ddb4f108dac2c2395e24e9ca17d68593d5.tar.bz2 |
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.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 214def1..d9281cf 100755 --- a/run_unittests.py +++ b/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): |