From 1a4dc3a888c7e6e179503250ccb391820a586b1b Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Tue, 6 Jan 2015 12:09:48 -0600 Subject: [PATCH] quote cmdline arg See #99. --- test/runjsontests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runjsontests.py b/test/runjsontests.py index a1f6082b5..2defb53ae 100644 --- a/test/runjsontests.py +++ b/test/runjsontests.py @@ -1,8 +1,8 @@ from __future__ import print_function +from glob import glob import sys import os -import os.path -from glob import glob +import pipes import optparse VALGRIND_CMD = 'valgrind --tool=memcheck --leak-check=yes --undef-value-errors=yes ' @@ -56,7 +56,7 @@ def runAllTests( jsontest_executable_path, input_dir = None, options = is_json_checker_test and '--json-checker' or '' pipe = os.popen( "%s%s %s %s" % ( valgrind_path, jsontest_executable_path, options, - input_path) ) + pipes.quote(input_path))) process_output = pipe.read() status = pipe.close() if is_json_checker_test: