aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-19 21:32:59 +0200
committerDavid Robillard <d@drobilla.net>2019-10-27 19:48:27 +0100
commit433f17a017c3471afe6b09cb74929d0ce76822c4 (patch)
treecc369491cbd2b1d9415cd0a1cd26509fb9a33e91 /wscript
parent4b63930f1f83adf58deaa848829055db4ebba211 (diff)
downloadserd-433f17a017c3471afe6b09cb74929d0ce76822c4.tar.gz
serd-433f17a017c3471afe6b09cb74929d0ce76822c4.tar.bz2
serd-433f17a017c3471afe6b09cb74929d0ce76822c4.zip
Support passing arguments to test wrappers
This allows using prefixes like valgrind --leak-check=full.
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
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():