Prevent state leaks when running tests in-process.
This commit is contained in:
parent
25e39f7fb1
commit
091b782e43
|
@ -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?')
|
||||
|
|
Loading…
Reference in New Issue