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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user