File tree 1 file changed +5
-0
lines changed
compiler/test/dotty/tools/scripting 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,12 @@ class BashScriptsTests:
39
39
val scalacPath = " dist/target/pack/bin/scalac" // which("scalac")
40
40
val scalaPath = " dist/target/pack/bin/scala" // which("scala")
41
41
42
+ def isFile (path : String ): Boolean =
43
+ Files .isRegularFile(Paths .get(path))
44
+
42
45
/* verify `dist/bin/scalac` */
43
46
@ Test def verifyScalacArgs =
47
+ assert(isFile(scalacPath))
44
48
printf(" scalacPath[%s]\n " ,scalacPath)
45
49
val commandline = (Seq (scalacPath, " -script" , showArgsScript) ++ testScriptArgs).mkString(" " )
46
50
if bashPath.toFile.exists then
@@ -60,6 +64,7 @@ class BashScriptsTests:
60
64
61
65
/* verify `dist/bin/scala` */
62
66
@ Test def verifyScalaArgs =
67
+ assert(isFile(scalaPath))
63
68
val commandline = (Seq (scalaPath, showArgsScript) ++ testScriptArgs).mkString(" " )
64
69
if bashPath.toFile.exists then
65
70
var cmd = Array (bashExe, " -c" , commandline)
You can’t perform that action at this time.
0 commit comments