@@ -72,7 +72,7 @@ object BashScriptsTests:
7272 def callScript (tag : String , script : String , keyPre : String ): String =
7373 val keyArg = s " $keyPre= $tag"
7474 printf(" pass tag [%s] via [%s] to script [%s]\n " , tag, keyArg, script)
75- val cmd : String = Seq (" SCALA_OPTS= " , scalaPath, " run" , keyArg, " --offline" , " --server=false" , script).mkString(" " )
75+ val cmd : String = Seq (" SCALA_OPTS= " , scalaPath, " run" , keyArg, " --power " , " -- offline" , " --server=false" , script).mkString(" " )
7676 printf(" cmd: [%s]\n " , cmd)
7777 val (validTest, exitCode, stdout, stderr) = bashCommand(cmd)
7878 stderr.filter { ! _.contains(" Inappropriate ioctl" ) }.foreach { System .err.printf(" stderr [%s]\n " , _) }
@@ -131,7 +131,7 @@ class BashScriptsTests:
131131
132132 val tag = " World5"
133133 val commandline2 = Seq (
134- " SCALA_OPTS= " , scalaPath.relpath, " run" , s " -Dkey= $tag" , " -classpath" , testJar.relpath, " --offline" , " --server=false" )
134+ " SCALA_OPTS= " , scalaPath.relpath, " run" , s " -Dkey= $tag" , " -classpath" , testJar.relpath, " --power " , " -- offline" , " --server=false" )
135135 printf(" cmd[%s]\n " , commandline2.mkString(" " ))
136136 val (validTest, exitCode, stdout, stderr) = bashCommand(commandline2.mkString(" " ))
137137 assertEquals(s " Hello $tag" , stdout.mkString(" /n" ))
@@ -157,7 +157,7 @@ class BashScriptsTests:
157157 assumeFalse(" Scripts do not yet support Scala 2 library TASTy" , Properties .usingScalaLibraryTasty)
158158 val commandline = (
159159 Seq (" SCALA_OPTS= " , scalaPath, showArgsScalaCli)
160- ++ Seq (" --offline" , " --server=false" )
160+ ++ Seq (" --power " , " -- offline" , " --server=false" )
161161 ++ (" --" +: testScriptArgs)
162162 ).mkString(" " )
163163 val (validTest, exitCode, stdout, stderr) = bashCommand(commandline)
0 commit comments