Skip to content

Commit

Permalink
Don't change characters in base dir when generating jsons (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
GalRogozinski authored Oct 19, 2023
1 parent f6e77dd commit 071ed76
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions types/testingutils/comparable/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ func UnmarshalStateComparison[T types.Root](basedir string, testName string, tes

// GetSCDir returns the path to the state comparison folder for the given test type
func GetSCDir(basedir string, testType string) string {
basedir = filepath.Join(basedir, "state_comparison", testType)
scDir := strings.NewReplacer(
testType = strings.NewReplacer(
"*", "",
".", "_").
Replace(basedir)
return scDir
Replace(testType)
return filepath.Join(basedir, "state_comparison", testType)
}

0 comments on commit 071ed76

Please sign in to comment.