Skip to content

Commit 949abfc

Browse files
committed
Unbreak run_tests
1 parent d33ce3f commit 949abfc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

run_tests.d

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ string fixSlashes(string path)
4646
else static assert(0);
4747
}
4848

49+
string envGet(string name)
50+
{
51+
return environment.get(name, null);
52+
}
53+
4954
void tryMkdir(string dir)
5055
{
5156
if(!exists(dir))
@@ -282,8 +287,8 @@ void runCombinedTests()
282287

283288
void runTravisTests()
284289
{
285-
useUnitThreaded = environment["USE_UNIT_THREADED"] == "true";
286-
auto noVibe = environment["NO_VIBE"] == "true";
290+
useUnitThreaded = envGet["USE_UNIT_THREADED"] == "true";
291+
auto noVibe = envGet["NO_VIBE"] == "true";
287292

288293
if(noVibe)
289294
{

0 commit comments

Comments
 (0)