Add current build release

Previously, the build releases only included named releases so did not
have a way to represent the latest build release. This adds the current
build release (named after the current API level) to represent that.

Bug: 240406019
Test: m nothing
Change-Id: Ib8336da716b447448b23bc9684ce3be1ab78648a
This commit is contained in:
Paul Duffin
2022-08-17 22:09:55 +00:00
parent 3f1ae0b55a
commit 42a49f1278
4 changed files with 46 additions and 20 deletions

View File

@@ -262,8 +262,7 @@ func CheckSnapshot(t *testing.T, result *android.TestResult, name string, dir st
// If the generated snapshot builders not for the current release then it cannot be loaded by
// the current release.
currentBuildRelease := latestBuildRelease()
if snapshotBuildInfo.targetBuildRelease != currentBuildRelease {
if snapshotBuildInfo.targetBuildRelease != buildReleaseCurrent {
return
}