From 433f17a017c3471afe6b09cb74929d0ce76822c4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Oct 2019 21:32:59 +0200 Subject: Support passing arguments to test wrappers This allows using prefixes like valgrind --leak-check=full. --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index ed5312a5..c34caeab 100644 --- a/wscript +++ b/wscript @@ -294,7 +294,8 @@ def _load_rdf(filename): cmd = ['./serdi_static', filename] if Options.options.test_wrapper: - cmd = [Options.options.test_wrapper] + cmd + import shlex + cmd = shlex.split(Options.options.test_wrapper) + cmd proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) for line in proc.communicate()[0].splitlines(): -- cgit v1.2.1