@@ -14,6 +14,7 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper
1414 .takeWhile(_ != " Please bear in mind that non-ideal user experience should be expected." )
1515 .contains(s " - $featureNameAndType" )
1616 }
17+ override def munitFlakyOK : Boolean = TestUtil .isCI
1718
1819 implicit class BinaryNameOps (binaryName : String ) {
1920 def prepareBinary (root : os.Path ): os.Path = {
@@ -458,7 +459,7 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper
458459 }
459460 }
460461
461- test(s " code using scala-continuations should compile for Scala 2.12.2 " ) {
462+ test(s " code using scala-continuations should compile for Scala 2.12.2 " .flaky ) {
462463 val sourceFileName = " example.scala"
463464 TestInputs (os.rel / sourceFileName ->
464465 """ import scala.util.continuations._
@@ -520,8 +521,9 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper
520521 if (sv.startsWith(" 3" )) " println(dotty.tools.dotc.config.Properties.simpleVersionString)"
521522 else " println(scala.util.Properties.versionNumberString)"
522523 anotherVersion =
523- if (sv.startsWith(" 3" )) Constants .scala3Lts
524- else " 2.13.7"
524+ if (sv.startsWith(" 2.13" )) Constants .scala212
525+ else if (sv.startsWith(" 2.12" )) Constants .scala213
526+ else Constants .scala3Lts
525527 } {
526528 test(
527529 s " default Scala version overridden with $sv by a launcher parameter is respected when running a script "
@@ -541,7 +543,7 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper
541543 }
542544 }
543545 test(
544- s " default Scala version overridden with $sv by a launcher parameter is overridable by -S "
546+ s " default Scala version overridden with $sv by a launcher parameter is overridable by -S passing $anotherVersion "
545547 ) {
546548 TestInputs (os.rel / " simple.sc" -> code)
547549 .fromRoot { root =>
0 commit comments