Refactor daemon parallel start test to improve diagnostics

also add daemon info to the RPC
and remove redundant daemon stopping calls, that should speed up
tests execution
This commit is contained in:
Ilya Chernikov
2017-06-23 18:01:40 +02:00
parent e2d2c5ff42
commit 2c35675fd6
3 changed files with 54 additions and 38 deletions
@@ -77,6 +77,9 @@ interface CompileService : Remote {
@Throws(RemoteException::class)
fun getDaemonOptions(): CallResult<DaemonOptions>
@Throws(RemoteException::class)
fun getDaemonInfo(): CallResult<String>
@Throws(RemoteException::class)
fun getDaemonJVMOptions(): CallResult<DaemonJVMOptions>
@@ -206,6 +206,10 @@ class CompileServiceImpl(
// RMI-exposed API
override fun getDaemonInfo(): CompileService.CallResult<String> = ifAlive(minAliveness = Aliveness.Dying) {
CompileService.CallResult.Good("Kotlin daemon on port $port")
}
override fun getDaemonOptions(): CompileService.CallResult<DaemonOptions> = ifAlive {
CompileService.CallResult.Good(daemonOptions)
}