From 9ca006e059c1bdcd3065a497ae74bc152bd28b52 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Mon, 15 Aug 2022 22:35:08 -0400 Subject: [PATCH] update expected annotation value in TaskRun e2e test --- test/taskrun_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/taskrun_test.go b/test/taskrun_test.go index f6b2a790f08..45b65648308 100644 --- a/test/taskrun_test.go +++ b/test/taskrun_test.go @@ -128,8 +128,8 @@ spec: } releaseAnnotation, ok := taskrun.Annotations[pod.ReleaseAnnotation] - // This should always contain a commit truncated to ~7 characters (based on knative.dev/pkg/changeset) - commitIDRegexp := regexp.MustCompile(`^[a-f0-9]{7}$`) + // This should always contain a commit truncated to 7 characters, possibly with "-dirty" suffix (based on knative.dev/pkg/changeset) + commitIDRegexp := regexp.MustCompile(`^[a-f0-9]{7}(-dirty)?$`) if !ok || !commitIDRegexp.MatchString(releaseAnnotation) { t.Fatalf("expected Taskrun to be annotated with %s=devel or with nightly release tag, got %s=%s", pod.ReleaseAnnotation, pod.ReleaseAnnotation, releaseAnnotation) }