2022-04-27 09:57:10 +02:00
|
|
|
diff -Nur meson-0.62.1/run_tests.py new/run_tests.py
|
|
|
|
--- meson-0.62.1/run_tests.py 2022-04-23 11:53:34.000000000 +0200
|
|
|
|
+++ new/run_tests.py 2022-04-23 14:30:53.079730407 +0200
|
|
|
|
@@ -175,18 +175,10 @@
|
2018-08-04 23:34:01 +02:00
|
|
|
Also used by run_unittests.py to determine what meson to run when not
|
|
|
|
running in-process (which is the default).
|
|
|
|
'''
|
|
|
|
- # Is there a meson.py next to the mesonbuild currently in use?
|
2020-01-14 20:34:25 +01:00
|
|
|
- mesonbuild_dir = Path(mesonmain.__file__).resolve().parent.parent
|
2018-08-04 23:34:01 +02:00
|
|
|
- meson_script = mesonbuild_dir / 'meson.py'
|
|
|
|
- if meson_script.is_file():
|
|
|
|
- return str(meson_script)
|
|
|
|
- # Then if mesonbuild is in PYTHONPATH, meson must be in PATH
|
|
|
|
- mlog.warning('Could not find meson.py next to the mesonbuild module. '
|
|
|
|
- 'Trying system meson...')
|
|
|
|
meson_cmd = shutil.which('meson')
|
|
|
|
- if meson_cmd:
|
|
|
|
+ if meson_cmd and os.path.isfile(meson_cmd):
|
|
|
|
return meson_cmd
|
2021-07-16 09:45:37 +02:00
|
|
|
- raise RuntimeError(f'Could not find {meson_script!r} or a meson in PATH')
|
|
|
|
+ raise RuntimeError(f'Could not find meson in PATH')
|
2018-08-04 23:34:01 +02:00
|
|
|
|
2021-08-10 14:30:50 +02:00
|
|
|
def get_backend_args_for_dir(backend: Backend, builddir: str) -> T.List[str]:
|
2018-08-04 23:34:01 +02:00
|
|
|
'''
|
2022-04-27 09:57:10 +02:00
|
|
|
@@ -356,12 +348,12 @@
|
2021-08-10 14:30:50 +02:00
|
|
|
# Can't pass arguments to unit tests, so set the backend to use in the environment
|
|
|
|
env = os.environ.copy()
|
|
|
|
if not options.cross:
|
|
|
|
- cmd = mesonlib.python_command + ['run_meson_command_tests.py', '-v']
|
|
|
|
- if options.failfast:
|
|
|
|
- cmd += ['--failfast']
|
|
|
|
- returncode += subprocess.call(cmd, env=env)
|
|
|
|
- if options.failfast and returncode != 0:
|
|
|
|
- return returncode
|
|
|
|
+ #cmd = mesonlib.python_command + ['run_meson_command_tests.py', '-v']
|
|
|
|
+ #if options.failfast:
|
|
|
|
+ # cmd += ['--failfast']
|
|
|
|
+ #returncode += subprocess.call(cmd, env=env)
|
|
|
|
+ #if options.failfast and returncode != 0:
|
|
|
|
+ # return returncode
|
|
|
|
if no_unittests:
|
|
|
|
print('Skipping all unit tests.')
|
|
|
|
print(flush=True)
|