Skip to content

Commit 96ceca0

Browse files
committed
address comment
1 parent 29b4ac5 commit 96ceca0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

testament/lib/stdtest/testutils.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ proc greedyOrderedSubsetLines*(lhs, rhs: string): bool =
3636
return false
3737
return true
3838

39-
const enableRemoteNetworking* = getEnv("NIM_TESTAMENT_REMOTE_NETWORKING") == "1"
39+
template enableRemoteNetworking*: bool =
4040
## Allows contolling whether to run some test at a statement-level granularity.
4141
## Using environment variables simplifies propagating this all the way across
4242
## process calls, e.g. `testament all` calls itself, which in turns invokes
4343
## a `nim` invocation (possibly via additional intermediate processes).
44+
getEnv("NIM_TESTAMENT_REMOTE_NETWORKING") == "1"

testament/testament.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ On Azure Pipelines, testament will also publish test results via Azure Pipelines
5454
provided that System.AccessToken is made available via the environment variable SYSTEM_ACCESSTOKEN.
5555
5656
Experimental: using environment variable `NIM_TESTAMENT_REMOTE_NETWORKING=1` enables
57-
tests with remote networking (as in CI). It is accessed when tests are compiled.
57+
tests with remote networking (as in CI).
5858
""" % resultsFile
5959

6060
type

0 commit comments

Comments
 (0)