Skip to content

Commit 0dc369b

Browse files
committed
updates
1 parent 9fd41bf commit 0dc369b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/atlantis/atlantis_generate_repo_config_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ func TestExecuteAtlantisGenerateRepoConfigAffectedOnly(t *testing.T) {
7777
atmosConfig, err := cfg.InitCliConfig(schema.ConfigAndStacksInfo{}, true)
7878
assert.Nil(t, err)
7979

80+
// We are using `atmos.yaml` from this dir. This `atmos.yaml` has set base_path: "../../tests/fixtures/scenarios/complete",
81+
// which will be wrong for the remote repo which is cloned into a temp dir.
82+
// Set the correct base path for the cloned remote repo
83+
atmosConfig.BasePath = "./tests/fixtures/scenarios/complete"
84+
8085
err = e.ExecuteAtlantisGenerateRepoConfigAffectedOnly(
8186
atmosConfig,
8287
"/dev/stdout",

0 commit comments

Comments
 (0)