Skip to content

Commit

Permalink
set ATMOS_TEST_HELPER_STATE_DIR env var for atmos commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalhoun committed Jan 29, 2025
1 parent 11aea8b commit 9df2e32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/atmos/component-helper/atmos_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ func getAtmosOptions(t *testing.T, config *c.Config, componentName string, stack
BackendConfig: map[string]interface{}{
"workspace_key_prefix": strings.Join([]string{config.RandomIdentifier, stackName}, "-"),
},
Vars: mergedVars,
EnvVars: map[string]string{"ATMOS_BASE_PATH": config.TempDir},
Vars: mergedVars,
EnvVars: map[string]string{
"ATMOS_BASE_PATH": config.TempDir,
"ATMOS_TEST_HELPER_STATE_DIR": config.TempDir,
},
}
return atmosOptions
}

0 comments on commit 9df2e32

Please sign in to comment.