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 = " ")) } } }