From 5b34f3f6271def4721b0c6244ab31ccb3a64863d Mon Sep 17 00:00:00 2001 From: Alex Buynytskyy Date: Fri, 15 Mar 2024 00:29:59 +0000 Subject: [PATCH] Finalization bugfixes. Keep codenames in the platform_versions.txt to allow for non-REL builds. Bug: 323940469 Test: local run Ignore-AOSP-First: Release configs are interal repo only. Change-Id: I664ac1c32c3aae5175d3b7a36ac763b35181bc22 --- tools/finalization/finalize-sdk-rel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/finalization/finalize-sdk-rel.sh b/tools/finalization/finalize-sdk-rel.sh index 17708604f1..ca2f20d3b7 100755 --- a/tools/finalization/finalize-sdk-rel.sh +++ b/tools/finalization/finalize-sdk-rel.sh @@ -25,7 +25,9 @@ function finalize_sdk_rel() { apply_prerelease_sdk_hack # cts - echo "$FINAL_PLATFORM_VERSION" > "$top/cts/tests/tests/os/assets/platform_versions.txt" + if ! grep -q "${FINAL_PLATFORM_VERSION}" "$top/cts/tests/tests/os/assets/platform_versions.txt" ; then + echo ${FINAL_PLATFORM_VERSION} >> "$top/cts/tests/tests/os/assets/platform_versions.txt" + fi if [ "$FINAL_PLATFORM_CODENAME" != "$CURRENT_PLATFORM_CODENAME" ]; then echo "$CURRENT_PLATFORM_CODENAME" >> "./cts/tests/tests/os/assets/platform_versions.txt" fi