mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
icons sync: exit process in case of non-daemon threads spawned from tests
GitOrigin-RevId: ef0823367af60d393c6ca1382b8b18504c5b93f9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0f532bbd84
commit
30e5e5a08e
+6
-8
@@ -9,7 +9,7 @@ import org.jetbrains.jps.util.JpsPathUtil
|
||||
import java.io.File
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
fun main(args: Array<String>) = try {
|
||||
if (args.isEmpty()) System.err.println("If you haven't intended to start full icons sync" +
|
||||
" then please specify required icons repo's commit hashes" +
|
||||
" joined by comma, semicolon or space in arguments")
|
||||
@@ -27,13 +27,11 @@ fun main(args: Array<String>) {
|
||||
"intellij.platform.images.build" to listOf("org.jetbrains.intellij.build.images.CommunityIconClassesTest",
|
||||
"org.jetbrains.intellij.build.images.CommunityImageResourcesSanityTest")
|
||||
)
|
||||
try {
|
||||
runTests(tests = tests.values.flatten(), modules = tests.keys)
|
||||
}
|
||||
finally {
|
||||
// in case of non-daemon threads spawned from tests
|
||||
exitProcess(0)
|
||||
}
|
||||
runTests(tests = tests.values.flatten(), modules = tests.keys)
|
||||
}
|
||||
finally {
|
||||
// in case of non-daemon threads spawned from tests
|
||||
exitProcess(0)
|
||||
}
|
||||
|
||||
private fun echo(msg: String) = println("\n** $msg")
|
||||
|
||||
@@ -59,7 +59,7 @@ internal fun loadImage(file: Path): Image? {
|
||||
}
|
||||
}
|
||||
catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
e.printStackTrace(System.out)
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user