Skip to content

Commit 42c2f16

Browse files
committed
Use simpler method of forcing tests to rerun
1 parent d24b9ff commit 42c2f16

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

‎Platforms/Android/android_run.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ async def gradle_task(context, app_id):
342342
+ (".bat" if os.name == "nt" else "")
343343
)
344344
args = [
345-
gradlew, "--console", "plain", f"{task_prefix}DebugAndroidTest"
345+
gradlew, "--console", "plain", f"{task_prefix}DebugAndroidTest", "--rerun"
346346
]
347347
for prop in context.gradle_properties:
348348
args += ["-P", prop]

‎Platforms/Android/testbed/app/build.gradle.kts‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,6 @@ android {
171171
systemImageSource = "aosp_atd"
172172
}
173173
}
174-
175-
// If the previous test run succeeded and nothing has changed,
176-
// Gradle thinks there's no need to run it again. Override that.
177-
afterEvaluate {
178-
(localDevices.names + listOf("connected")).forEach {
179-
tasks.named("${it}DebugAndroidTest") {
180-
outputs.upToDateWhen { false }
181-
}
182-
}
183-
}
184174
}
185175
}
186176
androidResources {

0 commit comments

Comments
 (0)