Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Mar 12, 2022
1 parent 889466b commit bea32a6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class MainBuildAuxiliaryDockerTag extends FunSuite with BeforeAndAfterAll {
val dockerout = Exec.run(Seq(executableBashTagFile.toString, "---dockerfile"))
// we expect something basic like
// FROM bash:5.0
//
// LABEL ...
// RUN :
// Allow for extra spaces just in case the format changes slightly format-wise but without functional differences
val regex = """^FROM bash:5\.0[\r\n\s]*RUN\s+:\s*$""".r
val regex = """^FROM bash:5\.0[\r\n\s]*.*""".r
assert(regex.findFirstIn(dockerout).isDefined, regex.toString)
}

Expand Down Expand Up @@ -75,10 +75,10 @@ class MainBuildAuxiliaryDockerTag extends FunSuite with BeforeAndAfterAll {
val dockerout = Exec.run(Seq(executableBashTagFile.toString, "---dockerfile"))
// we expect something basic like
// FROM bash:3.2
//
// LABEL ...
// RUN :
// Allow for extra spaces just in case the format changes slightly format-wise but without functional differences
val regex = """^FROM bash:3\.2[\r\n\s]*RUN\s+:\s*$""".r
val regex = """^FROM bash:3\.2[\r\n\s]*.*""".r
assert(regex.findFirstIn(dockerout).isDefined, regex.toString)
}

Expand Down

0 comments on commit bea32a6

Please sign in to comment.