Fix test arg parsing

This commit is contained in:
Manuel Ebert 2015-04-20 14:12:34 +02:00
parent 8e627b01c0
commit bdfe588a01

View file

@ -18,7 +18,9 @@ def _parse_args(command):
nargs = []
concats = []
for a in command.split()[1:]:
if a.startswith("'"):
if a.startswith("'") and a.endswith("'"):
nargs.append(a.strip("'"))
elif a.startswith("'"):
concats.append(a.strip("'"))
elif a.endswith("'"):
concats.append(a.strip("'"))