Skip to content

Commit 1c1422d

Browse files
committed
tests: Make vhs use colors in its output
Colored output is useful both in CI and on local machines, because it makes it a lot easier to find the error message in the vhs output. By default vhs doesn't use colors if stdout is not a tty (which it is not the way we are currenty executing it).
1 parent 581af79 commit 1c1422d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pam/integration-tests/vhs-helpers_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ func (td tapeData) RunVhs(t *testing.T, testType vhsTestType, outDir string, cli
243243

244244
cmd := exec.Command("env", "vhs")
245245
cmd.Env = append(testutils.AppendCovEnv(cmd.Env), cliEnv...)
246+
cmd.Env = append(cmd.Env, "CLICOLOR_FORCE=1")
246247
cmd.Dir = outDir
247248

248249
// If vhs is installed with "go install", we need to add GOPATH to PATH.

0 commit comments

Comments
 (0)