test-stack-trace: set env to disable color

The tests rely on the absence of terminal escape codes.
This commit is contained in:
Andrew Kelley 2023-03-13 12:13:37 -07:00
parent ede5dcffea
commit 8a8f148c8c

View File

@ -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("");