Skip to content

Commit 9cbd23f

Browse files
committed
fix test
1 parent f9ab30c commit 9cbd23f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/tshellenv.nim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
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+
when not defined windows:
19+
#Skips potential linker warning in some MacOs versions
20+
output = output.splitLines.toSeq.filterIt("export" in it)[0]
1721
check exitCode == QuitSuccess
1822
let
1923
prefixValPair = split(output, "=")

0 commit comments

Comments
 (0)