[Piglit] [PATCH 5/6] unittests: Fix JSON schema test to pass time_elapsed

Dylan Baker dylan at pnwbakers.com
Fri Aug 26 20:11:51 UTC 2016


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

diff --git a/unittests/framework/backends/test_json.py b/unittests/framework/backends/test_json.py
index e6574a6..0c49aff 100644
--- a/unittests/framework/backends/test_json.py
+++ b/unittests/framework/backends/test_json.py
@@ -112,7 +112,8 @@ class TestJSONBackend(object):
             test.initialize(shared.INITIAL_METADATA)
             with test.write_test(self.name) as t:
                 t(self.result)
-            test.finalize()
+            test.finalize(
+                {'time_elapsed': results.TimeAttribute(start=0.0, end=1.0)})
 
         def test_metadata_removed(self, tmpdir):
             assert not tmpdir.join('metadata.json').check()
-- 
git-series 0.8.10


More information about the Piglit mailing list