Skip to content

Commit fabd51b

Browse files
committed
Updated usvm-python-runner + small fixes
1 parent 8b8abcd commit fabd51b

6 files changed

Lines changed: 6 additions & 25 deletions

File tree

utbot-cli-python/src/main/kotlin/org/utbot/cli/language/python/sbft/SbftGenerateTestsCommand.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class SbftGenerateTestsCommand : CliktCommand(
172172

173173
Cleaner.doCleaning()
174174
alreadySaved.set(true)
175+
System.exit(0)
175176
}
176177

177178
override fun run() {

utbot-python/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies {
1010
api(project(":utbot-python-parser"))
1111
api(project(":utbot-python-types"))
1212
api(project(":utbot-python-executor"))
13-
api("org.usvm:usvm-python-runner:7b35ce5")
13+
api("org.usvm:usvm-python-runner:b087c5c")
1414

1515
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
1616
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

utbot-python/src/main/kotlin/org/utbot/python/engine/GlobalPythonEngine.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class GlobalPythonEngine(
8585
usvmPythonConfig,
8686
configuration,
8787
)
88-
val usvmConfig = USVMPythonRunConfig(config, until - System.currentTimeMillis(), configuration.timeoutForRun * 3)
88+
val usvmConfig = USVMPythonRunConfig(config, until - System.currentTimeMillis(), configuration.timeoutForRun * 2)
8989
if (debug) {
9090
engine.debugRun(usvmConfig)
9191
} else {
@@ -158,4 +158,4 @@ class GlobalPythonEngine(
158158
visitor.visit(method.ast)
159159
return hintCollector
160160
}
161-
}
161+
}

utbot-python/src/main/kotlin/org/utbot/python/engine/symbolic/USVMPythonAnalysisResultReceiverImpl.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class USVMPythonAnalysisResultReceiverImpl(
8080

8181
fun receivePickledInputValuesWithFeedback(pickledTuple: String): ExecutionFeedback? {
8282
try {
83+
// logger.info("Receiving $pickledTuple")
8384
val coverageId = CoverageIdGenerator.createId()
8485
return when (
8586
val evaluationResult = manager.runWithCoverage(pickledTuple, coverageId)
@@ -177,4 +178,4 @@ class USVMPythonAnalysisResultReceiverImpl(
177178
executionStorage.saveSymbolicExecution(it)
178179
}
179180
}
180-
}
181+
}

utbot-python/src/main/kotlin/org/utbot/python/engine/symbolic/USVMPythonConfig.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

utbot-python/src/main/kotlin/org/utbot/python/engine/symbolic/UsvmConfig.kt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)