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 = [] nargs = []
concats = [] concats = []
for a in command.split()[1:]: 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("'")) concats.append(a.strip("'"))
elif a.endswith("'"): elif a.endswith("'"):
concats.append(a.strip("'")) concats.append(a.strip("'"))