From 7e7e0c4ce267c40024012079c18168d47ae78eef Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Fri, 12 Oct 2018 13:29:47 +0300 Subject: runner: Fix results when there's warns and dmesg-warns After setting the result object text, the string retrieved from the old object is invalid. Signed-off-by: Petri Latvala Cc: Martin Peres Cc: Arkadiusz Hiler Reviewed-by: Daniel Vetter --- runner/resultgen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'runner') 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) { -- cgit v1.2.3