Skip to content

Commit 1f1ee11

Browse files
craig[bot]Abhinav1299
andcommitted
Merge #158033
158033: cli: filter standalone NOTICE lines in debug zip test output r=Abhinav1299 a=Abhinav1299 Remove intermittent license-related NOTICE messages from zip output in tests. Resolves: #157888, #157889 Epic: None Release note: None Co-authored-by: Abhinav1299 <[email protected]>
2 parents ef4e9e4 + 0e73369 commit 1f1ee11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cli/zip_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,10 @@ func eraseNonDeterministicZipOutput(out string) string {
698698
re = regexp.MustCompile(`(?m)^\[node \d+\] \d+ execution traces found$`)
699699
out = re.ReplaceAllString(out, `[node ?] ? execution traces found`)
700700

701+
// Remove license-related NOTICE messages that may appear intermittently.
702+
re = regexp.MustCompile(`(?m)^NOTICE: No license is installed.*\n?`)
703+
out = re.ReplaceAllString(out, ``)
704+
701705
return out
702706
}
703707

0 commit comments

Comments
 (0)