Skip to content

Commit

Permalink
The CI environment sandbox needs to pass through ACTIVESTATE_CI.
Browse files Browse the repository at this point in the history
Otherwise analytics will be skewed.
  • Loading branch information
mitchell-as committed Jan 5, 2024
1 parent d6c5306 commit 5d305cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/testhelpers/e2e/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func sandboxedTestEnvironment(t *testing.T, dirs *Dirs, updatePath bool, extraEn
basePath = os.Getenv("PATH")
env = append(env, os.Environ()...)
}
if value := os.Getenv(constants.ActiveStateCIEnvVarName); value != "" {
env = append(env, fmt.Sprintf("%s=%s", constants.ActiveStateCIEnvVarName, value))
}

env = append(env, []string{
constants.ConfigEnvVarName + "=" + dirs.Config,
Expand Down

0 comments on commit 5d305cd

Please sign in to comment.