aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-05-08 01:56:58 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-05-08 01:56:58 +0300
commit0793bae06ff30c80871cb3f8a85211190f79802f (patch)
tree5c602fbb93e7504862271345d54139fd3c956f54 /run_tests.py
parentd433abf89cfe6be640d7a913bfdd4ae723f8b573 (diff)
downloadmeson-unittestarg.zip
meson-unittestarg.tar.gz
meson-unittestarg.tar.bz2
Set unittest backend with an argument rather than an envvar.unittestarg
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py3
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)