diff --git a/core/tasks/device-tests.mk b/core/tasks/device-tests.mk index 084353b7a..b1b936af3 100644 --- a/core/tasks/device-tests.mk +++ b/core/tasks/device-tests.mk @@ -17,7 +17,7 @@ device-tests-zip := $(PRODUCT_OUT)/device-tests.zip $(device-tests-zip): $(COMPATIBILITY.device-tests.FILES) $(SOONG_ZIP) - echo $(COMPATIBILITY.device-tests.FILES) > $@.list + echo $(sort $(COMPATIBILITY.device-tests.FILES)) > $@.list sed -i -e 's/\s\+/\n/g' $@.list grep $(HOST_OUT_TESTCASES) $@.list > $@-host.list || true grep $(TARGET_OUT_TESTCASES) $@.list > $@-target.list || true diff --git a/core/tasks/general-tests.mk b/core/tasks/general-tests.mk index 9629bfa89..763dd5157 100644 --- a/core/tasks/general-tests.mk +++ b/core/tasks/general-tests.mk @@ -16,7 +16,7 @@ general-tests-zip := $(PRODUCT_OUT)/general-tests.zip $(general-tests-zip): $(COMPATIBILITY.general-tests.FILES) $(SOONG_ZIP) - echo $(COMPATIBILITY.general-tests.FILES) > $@.list + echo $(sort $(COMPATIBILITY.general-tests.FILES)) > $@.list sed -i -e 's/\s\+/\n/g' $@.list grep $(HOST_OUT_TESTCASES) $@.list > $@-host.list || true grep $(TARGET_OUT_TESTCASES) $@.list > $@-target.list || true