public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/1] runner: Fix results when there's warns and dmesg-warns
@ 2018-10-12 10:29 Petri Latvala
  2018-10-12 11:02 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/1] " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Petri Latvala @ 2018-10-12 10:29 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala, Martin Peres

After setting the result object text, the string retrieved from the
old object is invalid.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Martin Peres <martin.peres@linux.intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-12 13:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-12 10:29 [igt-dev] [PATCH i-g-t 1/1] runner: Fix results when there's warns and dmesg-warns Petri Latvala
2018-10-12 11:02 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/1] " Patchwork
2018-10-12 12:29 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-10-12 13:06 ` [igt-dev] [PATCH i-g-t 1/1] " Daniel Vetter
2018-10-12 13:29   ` Martin Peres

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox