This commit is contained in:
parent
e573fa9abc
commit
41613c16e9
|
@ -57,12 +57,10 @@ abstract class AbstractGradleFuncTest extends Specification {
|
||||||
}
|
}
|
||||||
|
|
||||||
String normalizedOutput(String input) {
|
String normalizedOutput(String input) {
|
||||||
|
String normalizedPathPrefix = testProjectDir.root.canonicalPath.replace('\\', '/')
|
||||||
return input.readLines()
|
return input.readLines()
|
||||||
.collect { it.replaceAll("\\\\", "/") }
|
.collect { it.replace('\\', '/') }
|
||||||
.collect {
|
.collect {it.replace(normalizedPathPrefix , '.') }
|
||||||
it.replaceAll(
|
|
||||||
testProjectDir.root.canonicalPath.replaceAll('\\\\', '/'), ".")
|
|
||||||
}
|
|
||||||
.join("\n")
|
.join("\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue