Skip to content

Commit d7c1b2f

Browse files
authored
change tests default output (#1336)
1 parent cff3719 commit d7c1b2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/testscommon.nim

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sequtils, strutils, strformat, os, osproc, sugar, unittest, macros
77
import pkg/checksums/sha1
88

9+
import nimblepkg/cli
910
from nimblepkg/common import cd, nimblePackagesDirName, ProcessOutput
1011
from nimblepkg/developfile import developFileVersion
1112

@@ -70,7 +71,8 @@ template verify*(res: (string, int)) =
7071
check r[1] == QuitSuccess
7172

7273
proc processOutput*(output: string): seq[string] =
73-
output.strip.splitLines().filter(
74+
checkpoint(output)
75+
result = output.strip.splitLines().filter(
7476
(x: string) => (
7577
x.len > 0 and
7678
"Using env var NIM_LIB_PREFIX" notin x
@@ -207,6 +209,9 @@ proc writeDevelopFile*(path: string, includes: seq[string],
207209
# Set env var to propagate nimble binary path
208210
putEnv("NIMBLE_TEST_BINARY_PATH", nimblePath)
209211

212+
setVerbosity(MediumPriority)
213+
setShowColor(false)
214+
210215
# Always recompile.
211216
block:
212217
# Verbose name is used for exit code so assert is clearer

0 commit comments

Comments
 (0)