Skip to content

Commit e2da2ce

Browse files
committed
Enable restart if null command is found
1 parent 93c1b7e commit e2da2ce

File tree

1 file changed

+4
-4
lines changed
  • utbot-junit-contest/src/main/kotlin/org/utbot/runtool

1 file changed

+4
-4
lines changed

utbot-junit-contest/src/main/kotlin/org/utbot/runtool/UtBotTool2.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class UtBotTool2 : ITestingTool {
3434
val line = inputChannel.readLine()
3535
if (line == null) {
3636
log("INIT FAILED, INPUT LINE IS <NULL>")
37-
continue
37+
break
3838
}
3939

4040
logUtbotOut(line)
@@ -131,9 +131,9 @@ class UtBotTool2 : ITestingTool {
131131
while (true) {
132132
val line = inputChannel.readLine()
133133
if (line == null) {
134-
log(">>> INPUT FROM UTBOT IS NULL <<<")
135-
// restartProcess()
136-
continue
134+
log("INPUT FROM UTBOT IS NULL, RESTARTING UTBOT")
135+
restartProcess()
136+
break
137137
}
138138
logUtbotOut(line)
139139

0 commit comments

Comments
 (0)