We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ab30c commit 2df0db9Copy full SHA for 2df0db9
tests/tshellenv.nim
@@ -6,14 +6,17 @@
6
import unittest, os, osproc, strutils
7
import testscommon
8
from nimblepkg/common import cd
9
+import std/sequtils
10
11
const
12
separator = when defined(windows): ";" else: ":"
13
14
suite "Shell env":
15
test "Shell env":
16
cd "shellenv":
- 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]
20
check exitCode == QuitSuccess
21
let
22
prefixValPair = split(output, "=")
0 commit comments