diff options
Diffstat (limited to 'tests/testament/tester.nim')
-rw-r--r-- | tests/testament/tester.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim index 7cf902704..7391b105e 100644 --- a/tests/testament/tester.nim +++ b/tests/testament/tester.nim @@ -59,7 +59,7 @@ proc callCompiler(cmdTemplate, filename, options: string, target: TTarget): TSpec = let c = parseCmdLine(cmdTemplate % ["target", targetToCmd[target], "options", options, "file", filename.quoteShell]) - var p = startProcess(command=c[0], args=c[1.. -1], + var p = startProcess(command=c[0], args=c[1.. ^1], options={poStdErrToStdOut, poUseShell}) let outp = p.outputStream var suc = "" @@ -146,7 +146,6 @@ proc codegenCheck(test: TTest, check: string, given: var TSpec) = try: let (path, name, ext2) = test.name.splitFile let genFile = generatedFile(path, name, test.target) - echo genFile let contents = readFile(genFile).string if check[0] == '\\': # little hack to get 'match' support: @@ -285,7 +284,7 @@ proc main() = let testsDir = "tests" & DirSep for kind, dir in walkDir(testsDir): assert testsDir.startsWith(testsDir) - let cat = dir[testsDir.len .. -1] + let cat = dir[testsDir.len .. ^1] if kind == pcDir and cat notin ["testament", "testdata", "nimcache"]: processCategory(r, Category(cat), p.cmdLineRest.string) for a in AdditionalCategories: |