diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-01-22 17:22:05 -0800 |
---|---|---|
committer | Fabian Bieler <fabianbieler@fastmail.fm> | 2018-02-05 19:44:16 +0100 |
commit | 9aa249d938b8b5fafbe24aff365aa8bfdeaed573 (patch) | |
tree | e1943ca15300b0f351702c23f4d8cf6148b189b0 | |
parent | dfd2a855f6230045f5201e105e99a660be5b2ee0 (diff) |
framework: add support for parsing subtest enumeration
This adds support for enumerating subtests to the python layer. When it
sees this it sets each subtest to notrun. This allows the python
framework to report that tests didn't run when they were expected to.
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Fabian Bieler <fabianbieler@fastmail.fm>
-rw-r--r-- | framework/test/piglit_test.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/test/piglit_test.py b/framework/test/piglit_test.py index 491f3d3d4..950a76245 100644 --- a/framework/test/piglit_test.py +++ b/framework/test/piglit_test.py @@ -34,6 +34,7 @@ except ImportError: import json from framework import core, options +from framework import status from .base import Test, WindowResizeMixin, ValgrindMixin, TestIsSkip @@ -73,7 +74,12 @@ class PiglitBaseTest(ValgrindMixin, Test): for each in self.result.out.split('\n'): if each.startswith('PIGLIT:'): - self.result.update(json.loads(each[8:])) + deserial = json.loads(each[8:]) + if 'enumerate subtests' in deserial: + for n in deserial['enumerate subtests']: + self.result.subtests[n] = status.NOTRUN + else: + self.result.update(deserial) else: out.append(each) |