diff options
author | Petri Latvala <petri.latvala@intel.com> | 2018-10-12 13:29:47 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2018-10-15 14:45:32 +0300 |
commit | 7e7e0c4ce267c40024012079c18168d47ae78eef (patch) | |
tree | ea4e430a3db69ca31be6618d9ac100499d7f82ec /runner | |
parent | 9bf0e5c75f27824df65b2c71d1a82980cf43c2dd (diff) | |
download | platform_external_igt-gpu-tools-7e7e0c4ce267c40024012079c18168d47ae78eef.tar.gz platform_external_igt-gpu-tools-7e7e0c4ce267c40024012079c18168d47ae78eef.tar.bz2 platform_external_igt-gpu-tools-7e7e0c4ce267c40024012079c18168d47ae78eef.zip |
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 <petri.latvala@intel.com>
Cc: Martin Peres <martin.peres@linux.intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'runner')
-rw-r--r-- | runner/resultgen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |