From 807818a92483ec472829d9b69021d77e2531fc13 Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Tue, 26 Jun 2018 19:16:23 +0200 Subject: [PATCH] [testing] Use shlex to be able to process quote enclosed strings as parameters --- bin/testing/runtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/testing/runtest.py b/bin/testing/runtest.py index 4967075550..4f1b301b78 100755 --- a/bin/testing/runtest.py +++ b/bin/testing/runtest.py @@ -1,5 +1,6 @@ #!/usr/bin/env python import argparse +import shlex import os, sys import subprocess import json @@ -34,7 +35,7 @@ if args['script']: # run the test res = 1 try: - res = subprocess.call(args['command'][0].split()) + res = subprocess.call(shlex.split(args['command'][0])) except OSError as e: print(args['command'][0].split()) print("OSError: Command not found. Most likely the executable specified doesn't exist.") -- GitLab