Commit 8a8f148c8c

Andrew Kelley <andrew@ziglang.org>
2023-03-13 20:13:37
test-stack-trace: set env to disable color
The tests rely on the absence of terminal escape codes.
1 parent ede5dcf
Changed files (1)
test/src/StackTrace.zig
@@ -82,6 +82,8 @@ fn addExpect(
     });
 
     const run = b.addRunArtifact(exe);
+    run.removeEnvironmentVariable("ZIG_DEBUG_COLOR");
+    run.setEnvironmentVariable("NO_COLOR", "1");
     run.expectExitCode(1);
     run.expectStdOutEqual("");