test(m2): make :core:data-jvm:smoke idempotent — wipe its probe library in doFirst
The probe asserts exact note counts; running it twice in a row against the surviving build/data-jvm-smoke directory failed on count assertions (found while verifying m2.5). The task now cleans the directory like backupSmoke does.
This commit is contained in:
1 parent
9cb7fdbf58
commit
29288b0370
1 file changed
+5
-1
@@ -88,7 +88,11 @@ tasks.register<JavaExec>("smoke") {
|
||||
description = "Opens a JVM ObjectBox store through the shared data layer."
|
||||
classpath = sourceSets["main"].runtimeClasspath
|
||||
mainClass.set("org.incido.data.jvm.StoreSmokeKt")
|
||||
args = listOf(layout.buildDirectory.dir("data-jvm-smoke").get().asFile.absolutePath)
|
||||
val smokeDir = layout.buildDirectory.dir("data-jvm-smoke").get().asFile
|
||||
args = listOf(smokeDir.absolutePath)
|
||||
// The probe asserts exact note counts, so it needs a virgin library —
|
||||
// wipe the directory here to keep `smoke` idempotent across runs.
|
||||
doFirst { smokeDir.deleteRecursively() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user