Skip to content

Commit

Permalink
change tests default output (nim-lang#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
elcritch authored Jan 20, 2025
1 parent cff3719 commit d7c1b2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/testscommon.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sequtils, strutils, strformat, os, osproc, sugar, unittest, macros
import pkg/checksums/sha1

import nimblepkg/cli
from nimblepkg/common import cd, nimblePackagesDirName, ProcessOutput
from nimblepkg/developfile import developFileVersion

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

proc processOutput*(output: string): seq[string] =
output.strip.splitLines().filter(
checkpoint(output)
result = output.strip.splitLines().filter(
(x: string) => (
x.len > 0 and
"Using env var NIM_LIB_PREFIX" notin x
Expand Down Expand Up @@ -207,6 +209,9 @@ proc writeDevelopFile*(path: string, includes: seq[string],
# Set env var to propagate nimble binary path
putEnv("NIMBLE_TEST_BINARY_PATH", nimblePath)

setVerbosity(MediumPriority)
setShowColor(false)

# Always recompile.
block:
# Verbose name is used for exit code so assert is clearer
Expand Down

0 comments on commit d7c1b2f

Please sign in to comment.