Skip to content

Commit 0e73369

Browse files
committed
cli: filter standalone NOTICE lines in debug zip test output
Remove intermittent license-related NOTICE messages from zip output in tests. Resolves: #157888, #157889 Epic: None Release note: None
1 parent 4600cd3 commit 0e73369

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)