testament: quote categories too because of 'dir with space' test

This commit is contained in:
Araq
2018-09-26 11:31:17 +02:00
parent 4b2f003500
commit 3d768738f8

View File

@@ -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)