Merge "Support running Kotlin tests"
diff --git a/run_robotests.mk b/run_robotests.mk
index 6251ae1..ba9a9c3 100644
--- a/run_robotests.mk
+++ b/run_robotests.mk
@@ -88,8 +88,9 @@
# directory from which this module is invoked.
ifeq ($(strip $(LOCAL_ROBOTEST_FILES)),)
LOCAL_ROBOTEST_FILES := $(call find-files-in-subdirs,$(LOCAL_PATH)/src,*Test.java,.)
+ LOCAL_ROBOTEST_FILES += $(call find-files-in-subdirs,$(LOCAL_PATH)/src,*Test.kt,.)
endif
- # Convert the paths into package names by removing .java extension and replacing "/" with "."
+ # Convert the paths into package names by removing .java or *.kt extensions and replacing "/" with "."
my_tests := $(sort $(subst /,.,$(basename $(LOCAL_ROBOTEST_FILES))))
ifdef my_test_filter_command
my_tests := $(sort $(shell echo '$(my_tests)' | tr ' ' '\n' | $(my_test_filter_command)))