summaryrefslogtreecommitdiff
path: root/tests/test_parsing.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_parsing.py')
-rw-r--r--tests/test_parsing.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py
index 4ca6838e..8c026631 100644
--- a/tests/test_parsing.py
+++ b/tests/test_parsing.py
@@ -299,3 +299,10 @@ def test_parse_command_only_expands_shortcuts(parser):
assert statement.command == 'shell'
assert statement.args == 'cat foobar.txt'
assert statement.command_and_args == line.replace('!', 'shell ')
+
+def test_parse_command_only_quoted_args(parser):
+ line = 'shell "/tmp/directory with spaces/doit.sh"'
+ statement = parser.parse_command_only(line)
+ assert statement.command == 'shell'
+ assert statement.args == '"/tmp/directory with spaces/doit.sh"'
+ assert statement.command_and_args == line