[igt-dev] [PATCH i-g-t 1/1] runner: Fix results when there's warns and dmesg-warns
Petri Latvala
petri.latvala at intel.com
Fri Oct 12 10:29:47 UTC 2018
After setting the result object text, the string retrieved from the
old object is invalid.
Signed-off-by: Petri Latvala <petri.latvala at intel.com>
Cc: Martin Peres <martin.peres at linux.intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
runner/resultgen.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/runner/resultgen.c b/runner/resultgen.c
index 9fc54cdc..ed8c9266 100644
--- a/runner/resultgen.c
+++ b/runner/resultgen.c
@@ -828,6 +828,7 @@ static void override_result_single(struct json_object *obj)
if (!strcmp(result, "pass") &&
count_lines(errtext, errtext + strlen(errtext)) > 2) {
set_result(obj, "warn");
+ result = "warn";
}
if (dmesgwarns) {
--
2.18.0
More information about the igt-dev
mailing list