Skip to content

Commit 514ea74

Browse files
committed
Remove redundant REPL tests
1 parent 053eeee commit 514ea74

File tree

2 files changed

+2
-57
lines changed

2 files changed

+2
-57
lines changed
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
11
package scala.cli.integration
22

3-
import com.eed3si9n.expecty.Expecty.expect
4-
5-
class ReplTests3NextRc extends ReplTestDefinitions with Test3NextRc {
6-
test("run hello world from the 3.8 REPL") {
7-
TestInputs.empty.fromRoot { root =>
8-
val expectedMessage = "1337"
9-
val code = s"""println($expectedMessage)"""
10-
val r = os.proc(
11-
TestUtil.cli,
12-
"repl",
13-
"--repl-quit-after-init",
14-
"--repl-init-script",
15-
code,
16-
"-S",
17-
// TODO: switch this test to 3.8.0-RC1 once it's out
18-
"3.8.0-RC1-bin-20251104-b83b3d9-NIGHTLY",
19-
TestUtil.extraOptions
20-
)
21-
.call(cwd = root)
22-
expect(r.out.trim() == expectedMessage)
23-
}
24-
}
25-
}
3+
class ReplTests3NextRc extends ReplTestDefinitions with Test3NextRc
Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,6 @@
11
package scala.cli.integration
22

3-
import com.eed3si9n.expecty.Expecty.expect
4-
5-
import java.io.File
6-
73
class ReplTestsDefault extends ReplTestDefinitions
84
with ReplAmmoniteTestDefinitions
95
with ReplAmmoniteTests3StableDefinitions
10-
with TestDefault {
11-
if (TestUtil.isNativeCli)
12-
test("not download java 17 when run repl without sources") {
13-
TestUtil.retryOnCi() {
14-
TestInputs.empty.fromRoot { root =>
15-
val java8Home =
16-
os.Path(os.proc(TestUtil.cs, "java-home", "--jvm", "zulu:8").call().out.trim(), os.pwd)
17-
18-
val res =
19-
os.proc(TestUtil.cli, "--power", "repl", TestUtil.extraOptions, "--", "-version").call(
20-
cwd = root,
21-
mergeErrIntoOut = true,
22-
env = Map(
23-
"JAVA_HOME" -> java8Home.toString,
24-
"COURSIER_ARCHIVE_CACHE" -> (root / "archive-cache").toString(),
25-
"COURSIER_CACHE" -> (root / "cache").toString(),
26-
"PATH" -> ((java8Home / "bin").toString + File.pathSeparator + System.getenv(
27-
"PATH"
28-
))
29-
)
30-
)
31-
32-
val output = res.out.trim().toLowerCase()
33-
34-
expect(!output.contains("jdk17"))
35-
expect(!output.contains("jvm-index"))
36-
}
37-
}
38-
}
39-
}
6+
with TestDefault

0 commit comments

Comments
 (0)