Fix style inconsistencies due to the previous commit

This commit is contained in:
narimiran 2020-07-06 11:24:43 +02:00
commit 46aacf917f
10 changed files with 85 additions and 85 deletions

View file

@ -97,7 +97,7 @@ proc getFileDir(filename: string): string =
if not result.isAbsolute():
result = getCurrentDir() / result
proc execCmdEx2(command: string, args: openarray[string]; workingDir, input: string = ""): tuple[
proc execCmdEx2(command: string, args: openArray[string]; workingDir, input: string = ""): tuple[
cmdLine: string,
output: TaintedString,
exitCode: int] {.tags:
@ -473,7 +473,7 @@ proc testSpecHelper(r: var TResults, test: TTest, expected: TSpec,
if exitCode != expected.exitCode:
r.addResult(test, target, "exitcode: " & $expected.exitCode,
"exitcode: " & $exitCode & "\n\nOutput:\n" &
bufB, reExitCodesDiffer)
bufB, reExitcodesDiffer)
elif (expected.outputCheck == ocEqual and expected.output != bufB) or
(expected.outputCheck == ocSubstr and expected.output notin bufB):
given.err = reOutputsDiffer
@ -536,7 +536,7 @@ proc testC(r: var TResults, test: TTest, action: TTestAction) =
elif action == actionRun:
let exeFile = changeFileExt(test.name, ExeExt)
var (_, exitCode) = execCmdEx(exeFile, options = {poStdErrToStdOut, poUsePath})
if exitCode != 0: given.err = reExitCodesDiffer
if exitCode != 0: given.err = reExitcodesDiffer
if given.err == reSuccess: inc(r.passed)
proc testExec(r: var TResults, test: TTest) =
@ -549,7 +549,7 @@ proc testExec(r: var TResults, test: TTest) =
if errC == 0:
given.err = reSuccess
else:
given.err = reExitCodesDiffer
given.err = reExitcodesDiffer
given.msg = outp.string
if given.err == reSuccess: inc(r.passed)
@ -613,8 +613,8 @@ proc loadSkipFrom(name: string): seq[string] =
result.add sline
proc main() =
os.putenv "NIMTEST_COLOR", "never"
os.putenv "NIMTEST_OUTPUT_LVL", "PRINT_FAILURES"
os.putEnv "NIMTEST_COLOR", "never"
os.putEnv "NIMTEST_OUTPUT_LVL", "PRINT_FAILURES"
azure.init()
backend.open()
@ -627,7 +627,7 @@ proc main() =
var p = initOptParser()
p.next()
while p.kind in {cmdLongoption, cmdShortOption}:
while p.kind in {cmdLongOption, cmdShortOption}:
case p.key.string.normalize
of "print", "verbose": optPrintResults = true
of "failing": optFailing = true