summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-26 11:31:17 +0200
committerAraq <rumpf_a@web.de>2018-09-26 11:31:17 +0200
commit3d768738f8a5b444c61a1e01b1cfa0d2c51255c4 (patch)
treeaf1812af7b3a4de72b12263f3b34d44fec4c995d /tests
parent4b2f0035007d4060dd16279c8c5e49c0cfb3b8f7 (diff)
downloadNim-3d768738f8a5b444c61a1e01b1cfa0d2c51255c4.tar.gz
testament: quote categories too because of 'dir with space' test
Diffstat (limited to 'tests')
-rw-r--r--tests/testament/tester.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index 566338559..f1f07b3c0 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -486,9 +486,9 @@ proc main() =
       assert testsDir.startsWith(testsDir)
       let cat = dir[testsDir.len .. ^1]
       if kind == pcDir and cat notin ["testament", "testdata", "nimcache"]:
-        cmds.add(myself & " cat " & cat & rest)
+        cmds.add(myself & " cat " & quoteShell(cat) & rest)
     for cat in AdditionalCategories:
-      cmds.add(myself & " cat " & cat & rest)
+      cmds.add(myself & " cat " & quoteShell(cat) & rest)
     quit osproc.execProcesses(cmds, {poEchoCmd, poStdErrToStdOut, poUsePath, poParentStreams})
   of "c", "cat", "category":
     var cat = Category(p.key)