summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorAndres Gomez <agomez@igalia.com>2020-07-29 22:08:39 +0300
committerMarge Bot <eric+marge@anholt.net>2020-09-28 17:26:09 +0000
commit0d3ab01fd5e14b28ef748101ad60d6e5ec72b983 (patch)
tree4e021ba664e230f7443e5d09137e1d0f366ebbaa /unittests
parentd03bca72df795c10e1b6f6e4ef8c6331c4ef6f87 (diff)
framework: have into account the images member in TestResult
Signed-off-by: Andres Gomez <agomez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/351>
Diffstat (limited to 'unittests')
-rw-r--r--unittests/framework/backends/schema/piglit-10.json11
-rw-r--r--unittests/framework/backends/shared.py7
2 files changed, 18 insertions, 0 deletions
diff --git a/unittests/framework/backends/schema/piglit-10.json b/unittests/framework/backends/schema/piglit-10.json
index 57b749401..c3ce41ed7 100644
--- a/unittests/framework/backends/schema/piglit-10.json
+++ b/unittests/framework/backends/schema/piglit-10.json
@@ -90,6 +90,17 @@
"traceback": { "type": ["string", "null"] },
"out": { "type": "string" },
"dmesg": { "type": "string" },
+ "images": {
+ "type": ["array", "null"],
+ "items": {
+ "type": "object",
+ "properties": {
+ "image_desc": { "type": "string" },
+ "image_ref": { "type": "string" },
+ "image_render": { "type": "string" }
+ }
+ }
+ },
"pid": {
"type": "array",
"items": { "type": "number" }
diff --git a/unittests/framework/backends/shared.py b/unittests/framework/backends/shared.py
index ad93dd40c..30fd1f9aa 100644
--- a/unittests/framework/backends/shared.py
+++ b/unittests/framework/backends/shared.py
@@ -60,6 +60,13 @@ JSON = {
"__type__": "TimeAttribute",
"end": 1469638791.2439244
},
+ "images": [
+ {
+ "image_desc": "gl-1.0-readpixsanity images",
+ "image_ref": "/home/user/source/gl-1.0-readpixsanity-results/ref.png",
+ "image_render": "/home/user/source/gl-1.0-readpixsanity-results/render.png"
+ }
+ ],
"pid": [11768],
"__type__": "TestResult",
"returncode": 1,