@@ -33,6 +33,9 @@ func TestTerragruntDestroyOrder(t *testing.T) {
3333 helpers .CleanupTerraformFolder (t , testFixtureDestroyOrder )
3434 tmpEnvPath := helpers .CopyEnvironment (t , testFixtureDestroyOrder )
3535 rootPath := util .JoinPath (tmpEnvPath , testFixtureDestroyOrder , "app" )
36+ // Resolve symlinks to avoid path mismatches on macOS where /var -> /private/var
37+ rootPath , err := filepath .EvalSymlinks (rootPath )
38+ require .NoError (t , err )
3639
3740 helpers .RunTerragrunt (t , "terragrunt run --all apply --non-interactive --working-dir " + rootPath )
3841
@@ -47,6 +50,9 @@ func TestTerragruntApplyDestroyOrder(t *testing.T) {
4750 helpers .CleanupTerraformFolder (t , testFixtureDestroyOrder )
4851 tmpEnvPath := helpers .CopyEnvironment (t , testFixtureDestroyOrder )
4952 rootPath := util .JoinPath (tmpEnvPath , testFixtureDestroyOrder , "app" )
53+ // Resolve symlinks to avoid path mismatches on macOS where /var -> /private/var
54+ rootPath , err := filepath .EvalSymlinks (rootPath )
55+ require .NoError (t , err )
5056
5157 helpers .RunTerragrunt (t , "terragrunt run --all apply --non-interactive --working-dir " + rootPath )
5258
@@ -72,6 +78,9 @@ func TestTerragruntDestroyOrderWithQueueIgnoreErrors(t *testing.T) {
7278 helpers .CleanupTerraformFolder (t , testFixtureDestroyOrder )
7379 tmpEnvPath := helpers .CopyEnvironment (t , testFixtureDestroyOrder )
7480 rootPath := util .JoinPath (tmpEnvPath , testFixtureDestroyOrder , "app" )
81+ // Resolve symlinks to avoid path mismatches on macOS where /var -> /private/var
82+ rootPath , err := filepath .EvalSymlinks (rootPath )
83+ require .NoError (t , err )
7584
7685 helpers .RunTerragrunt (t , "terragrunt run --all apply --non-interactive --working-dir " + rootPath )
7786
0 commit comments