diff options
Diffstat (limited to 'testing/framework/TestCommon.py')
-rw-r--r-- | testing/framework/TestCommon.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testing/framework/TestCommon.py b/testing/framework/TestCommon.py index 6b4b0bd..ca4a147 100644 --- a/testing/framework/TestCommon.py +++ b/testing/framework/TestCommon.py @@ -264,11 +264,16 @@ class TestCommon(TestCmd): if options: if arguments is None: return options + + # If not list, then split into lists + # this way we're not losing arguments specified with + # Spaces in quotes. if isinstance(options, str): - options = [options] + options = options.split() if isinstance(arguments, str): - arguments = [arguments] - arguments = ' '.join(options + arguments) + arguments = arguments.split() + arguments = options + arguments + return arguments def must_be_writable(self, *files): |