[igt-dev] [PATCH i-g-t] HAX: add 'i915:' to dmesg patterns and disregard KERN_NOTICE

Arkadiusz Hiler arkadiusz.hiler at intel.com
Thu Mar 7 08:19:19 UTC 2019


Stop-gap before dropping --piglit-style-dmesg completely.

This is just for testing, to asses the amount of work this will cause
for bug-reporting. When implemented properly it will end up as a
separate switch(es).
---
 runner/resultgen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/runner/resultgen.c b/runner/resultgen.c
index 32b59d59..fee46db8 100644
--- a/runner/resultgen.c
+++ b/runner/resultgen.c
@@ -497,7 +497,7 @@ static const char igt_dmesg_whitelist[] =
 #undef _
 
 static const char igt_piglit_style_dmesg_blacklist[] =
-	"(\\[drm:|drm_|intel_|i915_)";
+	"(\\[drm:|drm_|intel_|i915_|i915:)";
 
 static regex_t re;
 
@@ -678,7 +678,7 @@ static bool fill_from_dmesg(int fd,
 		}
 
 		if (settings->piglit_style_dmesg) {
-			if ((flags & 0x07) <= 5 && continuation != 'c' &&
+			if ((flags & 0x07) <= 4 && continuation != 'c' &&
 			    regexec(&re, message, (size_t)0, NULL, 0) != REG_NOMATCH) {
 				append_line(&warnings, &warningslen, formatted);
 			}
-- 
2.20.1



More information about the igt-dev mailing list