Prevent state leaks when running tests in-process.

This commit is contained in:
Jussi Pakkanen 2016-02-17 23:27:18 +02:00
parent 25e39f7fb1
commit 091b782e43
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ def run_tests(options, datafilename):
def run(args):
global tests_failed
tests_failed = [] # To avoid state leaks when invoked multiple times (running tests in-process)
options = parser.parse_args(args)
if len(options.args) != 1:
print('Test runner for Meson. Do not run on your own, mmm\'kay?')