Skip to content

Commit 2df0db9

Browse files
committed
fix test
1 parent f9ab30c commit 2df0db9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/tshellenv.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
import unittest, os, osproc, strutils
77
import testscommon
88
from nimblepkg/common import cd
9+
import std/sequtils
910

1011
const
1112
separator = when defined(windows): ";" else: ":"
1213

1314
suite "Shell env":
1415
test "Shell env":
1516
cd "shellenv":
16-
let (output, exitCode) = execCmdEx(nimblePath & " shellenv")
17+
var (output, exitCode) = execCmdEx(nimblePath & " shellenv")
18+
#Skips potential linker warning in some MacOs versions
19+
output = output.splitLines.toSeq.filterIt("export" in it)[0]
1720
check exitCode == QuitSuccess
1821
let
1922
prefixValPair = split(output, "=")

0 commit comments

Comments
 (0)