diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-05-08 01:56:58 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-05-08 21:35:08 +0300 |
commit | 1d06d4ca1a5a2da157966fad915f9d72d2228421 (patch) | |
tree | eee5f17ea211c85367d0858a608a4ee355dd2162 /run_tests.py | |
parent | 247630b98172221718bce202c9fe144d9694892c (diff) | |
download | meson-1d06d4ca1a5a2da157966fad915f9d72d2228421.zip meson-1d06d4ca1a5a2da157966fad915f9d72d2228421.tar.gz meson-1d06d4ca1a5a2da157966fad915f9d72d2228421.tar.bz2 |
Set unittest backend with an argument rather than an envvar.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py index b2a25f0..1d755a8 100755 --- a/run_tests.py +++ b/run_tests.py @@ -346,7 +346,6 @@ def main(): # Run tests # Can't pass arguments to unit tests, so set the backend to use in the environment env = os.environ.copy() - env['MESON_UNIT_TEST_BACKEND'] = backend.name with tempfile.TemporaryDirectory() as temp_dir: # Enable coverage on all subsequent processes. if enable_coverage: @@ -372,7 +371,7 @@ def main(): else: print(mlog.bold('Running unittests.')) print(flush=True) - cmd = mesonlib.python_command + ['run_unittests.py', '-v'] + cmd = mesonlib.python_command + ['run_unittests.py', '--backend=' + backend.name, '-v'] if options.failfast: cmd += ['--failfast'] returncode += subprocess.call(cmd, env=env) |