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:
Incido Developer committed 2026-10-05 19:48:54 +13:00
1 parent 9cb7fdbf58
commit 29288b0370
1 file changed
+5 -1
+5 -1
View File
@@ -88,7 +88,11 @@ tasks.register<JavaExec>("smoke") {
description = "Opens a JVM ObjectBox store through the shared data layer." description = "Opens a JVM ObjectBox store through the shared data layer."
classpath = sourceSets["main"].runtimeClasspath classpath = sourceSets["main"].runtimeClasspath
mainClass.set("org.incido.data.jvm.StoreSmokeKt") 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() }
} }
/** /**