summaryrefslogtreecommitdiff
path: root/runner/resultgen.c
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-04-01 09:40:28 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-04-01 14:58:26 +0300
commitec9792ad770d5055d6f42e2a481b8314754c9218 (patch)
treee3c32587ffd2e0a1a27973ac52ae430676b19e73 /runner/resultgen.c
parent93cbe569582626793f79e5626970703059f88933 (diff)
runner: Add --dmesg-warn-level switch
This switch allows users to select which dmesg log level is treated as warning resulting in overriding the test results to dmesg-fail/dmesg-warn. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'runner/resultgen.c')
-rw-r--r--runner/resultgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runner/resultgen.c b/runner/resultgen.c
index 42297d8a5..d9702a194 100644
--- a/runner/resultgen.c
+++ b/runner/resultgen.c
@@ -670,12 +670,12 @@ static bool fill_from_dmesg(int fd,
}
if (settings->piglit_style_dmesg) {
- if ((flags & 0x07) <= 5 && continuation != 'c' &&
+ if ((flags & 0x07) <= settings->dmesg_warn_level && continuation != 'c' &&
regexec(&re, message, (size_t)0, NULL, 0) != REG_NOMATCH) {
append_line(&warnings, &warningslen, formatted);
}
} else {
- if ((flags & 0x07) <= 4 && continuation != 'c' &&
+ if ((flags & 0x07) <= settings->dmesg_warn_level && continuation != 'c' &&
regexec(&re, message, (size_t)0, NULL, 0) == REG_NOMATCH) {
append_line(&warnings, &warningslen, formatted);
}