MCPcopy Index your code
hub / github.com/jetify-com/devbox / setupTestEnv

Function setupTestEnv

testscripts/testrunner/setupenv.go:17–26  ·  view source on GitHub ↗

setupTestEnv configures env for devbox tests.

(env *testscript.Env)

Source from the content-addressed store, hash-verified

15
16// setupTestEnv configures env for devbox tests.
17func setupTestEnv(env *testscript.Env) error {
18 setupPATH(env)
19 setupHome(env)
20 setupCacheHome(env)
21 propagateEnvVars(env,
22 debug.DevboxDebug, // to enable extra logging
23 "SSL_CERT_FILE", // so HTTPS works with Nix-installed certs
24 )
25 return nil
26}
27
28// setupHome sets the test's HOME to a unique temp directory. The testscript
29// package sets it to /no-home by default (presumably to improve isolation), but

Callers 1

getTestscriptParamsFunction · 0.85

Calls 4

setupPATHFunction · 0.85
setupHomeFunction · 0.85
setupCacheHomeFunction · 0.85
propagateEnvVarsFunction · 0.85

Tested by

no test coverage detected