From e0735a972084adea40b3a3ca2a0d644f7764d556 Mon Sep 17 00:00:00 2001 From: Rd Date: Sun, 21 Jul 2024 17:54:18 +0530 Subject: [PATCH] Re running attempt 6: with removing the kt suffix for test target queries to build oppia tests --- .../android/scripts/ci/RetrieveChangedFilesTestTargets.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/src/java/org/oppia/android/scripts/ci/RetrieveChangedFilesTestTargets.kt b/scripts/src/java/org/oppia/android/scripts/ci/RetrieveChangedFilesTestTargets.kt index 1e33d9d9036..d22c3a97fb9 100644 --- a/scripts/src/java/org/oppia/android/scripts/ci/RetrieveChangedFilesTestTargets.kt +++ b/scripts/src/java/org/oppia/android/scripts/ci/RetrieveChangedFilesTestTargets.kt @@ -81,8 +81,11 @@ fun main(args: Array) { val changedFilesTestTargets = bazelClient.retrieveBazelTargets(changedFilesTestFiles) println("Changed Files Test Targets: $changedFilesTestTargets") + val changedFilesTestTargetWithoutSuffix = changedFilesTestTargets.map { it.removeSuffix(".kt") } + println("Changed Files Test Targets without suffix: $changedFilesTestTargetWithoutSuffix") + fileTestTargetsListOutputFile.printWriter().use { writer -> - writer.println(changedFilesTestTargets.joinToString(separator = " ")) + writer.println(changedFilesTestTargetWithoutSuffix.joinToString(separator = " ")) } } }