Revert "Add the cts-platform-version check"
Revert submission 15776724-rewrite cts-platform-version-check module Reason for revert: merge conflicts with sc-dev-plus-aosp Reverted Changes: I7d018d2b3:Remove os/Android.mk I613ac5b50:Add the cts-platform-version check Change-Id: Ic4a9c58c46ffadb5fcaadd1649e54a9fa2a69285
This commit is contained in:
@@ -25,35 +25,3 @@ $(call dist-for-goals, cts, $(compatibility_zip))
|
||||
|
||||
.PHONY: cts_v2
|
||||
cts_v2: cts
|
||||
|
||||
# platform version check (b/32056228)
|
||||
# ============================================================
|
||||
ifneq (,$(wildcard cts/))
|
||||
cts_platform_version_path := cts/tests/tests/os/assets/platform_versions.txt
|
||||
cts_platform_version_string := $(shell cat $(cts_platform_version_path))
|
||||
cts_platform_release_path := cts/tests/tests/os/assets/platform_releases.txt
|
||||
cts_platform_release_string := $(shell cat $(cts_platform_release_path))
|
||||
|
||||
ifeq (,$(findstring $(PLATFORM_VERSION),$(cts_platform_version_string)))
|
||||
define error_msg
|
||||
============================================================
|
||||
Could not find version "$(PLATFORM_VERSION)" in CTS platform version file:
|
||||
$(cts_platform_version_path)
|
||||
Most likely PLATFORM_VERSION in build/core/version_defaults.mk
|
||||
has changed and a new version must be added to this CTS file.
|
||||
============================================================
|
||||
endef
|
||||
$(error $(error_msg))
|
||||
endif
|
||||
ifeq (,$(findstring $(PLATFORM_VERSION_LAST_STABLE),$(cts_platform_release_string)))
|
||||
define error_msg
|
||||
============================================================
|
||||
Could not find version "$(PLATFORM_VERSION_LAST_STABLE)" in CTS platform release file:
|
||||
$(cts_platform_release_path)
|
||||
Most likely PLATFORM_VERSION_LAST_STABLE in build/core/version_defaults.mk
|
||||
has changed and a new version must be added to this CTS file.
|
||||
============================================================
|
||||
endef
|
||||
$(error $(error_msg))
|
||||
endif
|
||||
endif
|
||||
|
Reference in New Issue
Block a user