diff --git a/import-export-cli/integration/base/helper.go b/import-export-cli/integration/base/helper.go index 75b162b04..51d622102 100644 --- a/import-export-cli/integration/base/helper.go +++ b/import-export-cli/integration/base/helper.go @@ -308,7 +308,7 @@ func CreateTempDir(t *testing.T, path string) { } func GetExportedPathFromOutput(output string) string { - return strings.ReplaceAll(strings.ReplaceAll(output[strings.Index(output, "/"):], "\n", ""), " ", "") + return strings.ReplaceAll(strings.ReplaceAll(output[strings.Index(output, string(os.PathSeparator)):], "\n", ""), " ", "") } //Count number of files in a directory