mirror of https://github.com/sbt/sbt.git
Make the script version regex test more windows-friendly
This commit is contained in:
parent
5991e803af
commit
978ea39676
|
|
@ -111,7 +111,7 @@ object SbtRunnerTest extends SimpleTestSuite with PowerAssertions {
|
|||
test("sbt -V|-version|--version should print sbtVersion") {
|
||||
val out = sbtProcessWithOpts("-version", "", "").!!.trim
|
||||
val expectedVersion =
|
||||
s"""|(?m)^sbt version in this project: $versionRegEx
|
||||
s"""|(?m)^sbt version in this project: $versionRegEx(\\r)?
|
||||
|sbt script version: $versionRegEx$$
|
||||
|""".stripMargin.trim.replace("\n", "\\n")
|
||||
assert(out.matches(expectedVersion))
|
||||
|
|
|
|||
Loading…
Reference in New Issue