Skip to content

Commit

Permalink
Don't change characters in base dir when generating jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
GalRogozinski committed Oct 15, 2023
1 parent 8fd4372 commit 98f86b1
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 98f86b1

Please sign in to comment.