Merge pull request #10638 from medyagh/err_spam_up_wh

test spam: add cgroup warnning to whitelist
pull/10641/head
Medya Ghazizadeh 2021-02-26 12:50:09 -08:00 committed by GitHub
commit 91129332a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -40,12 +40,14 @@ var stderrAllow = []string{
`docker.*issue.*performance`,
// "* Suggestion: enable overlayfs kernel module on your Linux"
`Suggestion.*overlayfs`,
// jenkins VMs (debian 9) cgoups don't allow setting memory
`Your cgroup does not allow setting memory.`,
}
// stderrAllowRe combines rootCauses into a single regex
var stderrAllowRe = regexp.MustCompile(strings.Join(stderrAllow, "|"))
// TestErrorSpam asserts that there are no errors displayed
// TestErrorSpam asserts that there are no errors displayed in UI.
func TestErrorSpam(t *testing.T) {
if NoneDriver() {
t.Skip("none driver always shows a warning")