@@ -14,6 +14,7 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper
14
14
.takeWhile(_ != " Please bear in mind that non-ideal user experience should be expected." )
15
15
.contains(s " - $featureNameAndType" )
16
16
}
17
+ override def munitFlakyOK : Boolean = TestUtil .isCI
17
18
18
19
implicit class BinaryNameOps (binaryName : String ) {
19
20
def prepareBinary (root : os.Path ): os.Path = {
@@ -458,7 +459,7 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper
458
459
}
459
460
}
460
461
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 ) {
462
463
val sourceFileName = " example.scala"
463
464
TestInputs (os.rel / sourceFileName ->
464
465
""" import scala.util.continuations._
@@ -520,8 +521,9 @@ class SipScalaTests extends ScalaCliSuite with SbtTestHelper with MillTestHelper
520
521
if (sv.startsWith(" 3" )) " println(dotty.tools.dotc.config.Properties.simpleVersionString)"
521
522
else " println(scala.util.Properties.versionNumberString)"
522
523
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
525
527
} {
526
528
test(
527
529
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
541
543
}
542
544
}
543
545
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 "
545
547
) {
546
548
TestInputs (os.rel / " simple.sc" -> code)
547
549
.fromRoot { root =>
0 commit comments