From 0da0d6235c8f7b869bfa725b10d328a18df21c01 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Oct 2019 17:27:15 +0200 Subject: Support passing arguments to test wrappers This allows using prefixes like valgrind --leak-check=full. --- extras/autowaf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/autowaf.py b/extras/autowaf.py index 678dfe9..50e3728 100644 --- a/extras/autowaf.py +++ b/extras/autowaf.py @@ -924,7 +924,8 @@ class TestScope: self.tst.log_good('RUN ', name) if Options.options.test_wrapper: - test = [Options.options.test_wrapper] + test + import shlex + test = shlex.split(Options.options.test_wrapper) + test output = TestOutput(expected) with open(os.devnull, 'wb') as null: -- cgit v1.2.1