未验证 提交 f9bac2a0 编写于 作者: M Medya Ghazizadeh 提交者: GitHub

Merge pull request #8744 from tstromberg/noisy-spam

TestErrorSpam: Add overlayfs/docker perf issue to stderrAllow
......@@ -36,6 +36,10 @@ var stderrAllow = []string{
`cache_images.go:.*error getting status`,
// don't care if we can't push images to other profiles which are deleted.
`cache_images.go:.*Failed to load profile`,
// ! 'docker' driver reported a issue that could affect the performance."
`docker.*issue.*performance`,
// "* Suggestion: enable overlayfs kernel module on your Linux"
`Suggestion.*overlayfs`,
}
// stderrAllowRe combines rootCauses into a single regex
......@@ -64,14 +68,10 @@ func TestErrorSpam(t *testing.T) {
stderr := rr.Stderr.String()
for _, line := range strings.Split(stderr, "\n") {
if strings.HasPrefix(line, "E") {
if stderrAllowRe.MatchString(line) {
t.Logf("acceptable stderr: %q", line)
continue
}
t.Errorf("unexpected error log: %q", line)
continue
}
if len(strings.TrimSpace(line)) > 0 {
t.Errorf("unexpected stderr: %q", line)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册