Skip to content

Commit 561d278

Browse files
author
Alberto Fanjul
committed
set bool env var correctly on windows for integration test
1 parent 3cd57a6 commit 561d278

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/utilities_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"io"
66
"os"
77
"os/exec"
8+
"runtime"
89
"strings"
910
"time"
1011

@@ -21,8 +22,8 @@ type CRCBuilder struct {
2122
// NewCRCCommand returns a CRCBuilder for running CRC.
2223
func NewCRCCommand(args ...string) *CRCBuilder {
2324
cmd := exec.Command("crc", args...)
24-
cmd.Env = append(os.Environ(), "CRC_DISABLE_UPDATE_CHECK=true")
25-
cmd.Env = append(os.Environ(), "CRC_LOG_LEVEL=debug")
25+
cmd.Env = append(os.Environ(), EnvVariable("CRC_DISABLE_UPDATE_CHECK", "true"))
26+
cmd.Env = append(cmd.Env, EnvVariable("CRC_LOG_LEVEL", "debug"))
2627
return &CRCBuilder{
2728
cmd: cmd,
2829
}

0 commit comments

Comments
 (0)