summaryrefslogtreecommitdiff
path: root/sdk/testing.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-08-17 22:09:55 +0000
committer Paul Duffin <paulduffin@google.com> 2022-08-19 17:39:49 +0000
commit42a49f1278b50b6cd4971f9d40505a278461154e (patch)
tree410855dee6bcd99720761a30015b0eaede497cb7 /sdk/testing.go
parent3f1ae0b55acd7e727c6227c3ab3e4f34e885e478 (diff)
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
Diffstat (limited to 'sdk/testing.go')
-rw-r--r--sdk/testing.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/sdk/testing.go b/sdk/testing.go
index bed11b27d..f4e2b031b 100644
--- a/sdk/testing.go
+++ b/sdk/testing.go
@@ -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
}