From 0793bae06ff30c80871cb3f8a85211190f79802f Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 8 May 2021 01:56:58 +0300 Subject: Set unittest backend with an argument rather than an envvar. --- run_tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'run_tests.py') 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) -- cgit v1.1