Skip to content

Commit ddceb38

Browse files
authored
[testscripts] respect DEVBOX_DEBUG flag instead of always setting it on (#824)
## Summary It is very hard to parse the output from testscripts because we always turn on DEVBOX_DEBUG output as well. Instead, we should respect the invoking user's DEVBOX_DEBUG value. ## How was it tested? shows output as before: ``` DEVBOX_DEBUG=1 go test -v ./testscripts/... ``` cleaner output: ``` go test -v ./testscripts/... ```
1 parent 34cfb7f commit ddceb38

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

testscripts/testrunner/setupenv.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ func setupTestEnv(env *testscript.Env) error {
1717
return err
1818
}
1919

20-
// Enable new `devbox run` so we can use it in tests. This is temporary,
21-
// and should be removed once we enable this feature flag.
22-
env.Setenv("DEVBOX_FEATURE_UNIFIED_ENV", "1")
23-
env.Setenv("DEVBOX_DEBUG", "1")
20+
env.Setenv("DEVBOX_DEBUG", os.Getenv("DEVBOX_DEBUG"))
2421
return nil
2522
}
2623

0 commit comments

Comments
 (0)