Output from Nimble scripts' top-level statements is now
only visible with --verbose.
This commit is contained in:
Dominik Picheta 2019-09-22 14:39:22 +01:00
commit 281a1d129a
4 changed files with 44 additions and 1 deletions

View file

@ -79,9 +79,19 @@ proc hasLineStartingWith(lines: seq[string], prefix: string): bool =
return true
return false
test "issue 708":
cd "issue708":
# TODO: We need a way to filter out compiler messages from the messages
# written by our nimble scripts.
var (output, exitCode) = execNimble("install", "-y", "--verbose")
check exitCode == QuitSuccess
let lines = output.strip.processOutput()
check(inLines(lines, "hello"))
check(inLines(lines, "hello2"))
test "issue 564":
cd "issue564":
var (output, exitCode) = execNimble("build")
var (_, exitCode) = execNimble("build")
check exitCode == QuitSuccess
test "depsOnly + flag order test":