TBR: devtools/jiri-test: use the last part of snapshot manifest as the version string.
PresubmitTest: none
Change-Id: I50f3269969e5c5452c06afb068dc0ebeef737031
diff --git a/jiri-test/internal/test/release_kube.go b/jiri-test/internal/test/release_kube.go
index 8c10423..cf7cd00 100644
--- a/jiri-test/internal/test/release_kube.go
+++ b/jiri-test/internal/test/release_kube.go
@@ -15,11 +15,11 @@
)
func vanadiumReleaseKubeStaging(jirix *jiri.X, testName string, opts ...Opt) (_ *test.Result, e error) {
- version := os.Getenv("SNAPSHOT_MANIFEST")
- if version == "" {
+ manifestPath := os.Getenv("SNAPSHOT_MANIFEST")
+ if manifestPath == "" {
return nil, fmt.Errorf("SNAPSHOT_MANIFEST environment variable not set")
}
- return vanadiumReleaseKubeCommon(jirix, testName, "staging", version)
+ return vanadiumReleaseKubeCommon(jirix, testName, "staging", filepath.Base(manifestPath))
}
func vanadiumReleaseKubeProduction(jirix *jiri.X, testName string, opts ...Opt) (_ *test.Result, e error) {