[Piglit] [PATCH v2 1/5] unittests: Fix shared data for backends.

Dylan Baker dylan at pnwbakers.com
Thu Sep 1 19:01:09 UTC 2016


It turns out that the backends coincidently put certain fields in, but
the new jsonstreams backend does not automatically add these fields, it
must be passed them. (This is the behavior of piglit when not testing).

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 unittests/framework/backends/shared.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/unittests/framework/backends/shared.py b/unittests/framework/backends/shared.py
index eeffe76..dd90fc2 100644
--- a/unittests/framework/backends/shared.py
+++ b/unittests/framework/backends/shared.py
@@ -30,9 +30,12 @@ from framework.options import OPTIONS
 
 INITIAL_METADATA = {
     'name': 'name',
-    'test_count': 0,
-    'env': {},
     'options': dict(OPTIONS),
+    'clinfo': None,
+    'glxinfo': None,
+    'wglinfo': None,
+    'lspci': None,
+    'uname': None,
 }
 
 # This is current JSON data, in raw form with only the minimum required
-- 
git-series 0.8.10


More information about the Piglit mailing list