summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/exectest.py22
1 files changed, 9 insertions, 13 deletions
diff --git a/framework/exectest.py b/framework/exectest.py
index 43c9a9946..4410115a9 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -273,16 +273,12 @@ class PiglitTest(Test):
outlines = self.result['out'].split('\n')
outpiglit = (s[7:] for s in outlines if s.startswith('PIGLIT:'))
- try:
- for piglit in outpiglit:
- if piglit.startswith('subtest'):
- if not 'subtest' in self.result:
- self.result['subtest'] = {}
- self.result['subtest'].update(eval(piglit[7:]))
- else:
- self.result.update(eval(piglit))
- self.result['out'] = '\n'.join(
- s for s in outlines if not s.startswith('PIGLIT:'))
- except:
- self.result['result'] = 'fail'
- self.result['note'] = 'Failed to parse result string'
+ for piglit in outpiglit:
+ if piglit.startswith('subtest'):
+ if not 'subtest' in self.result:
+ self.result['subtest'] = {}
+ self.result['subtest'].update(eval(piglit[7:]))
+ else:
+ self.result.update(eval(piglit))
+ self.result['out'] = '\n'.join(
+ s for s in outlines if not s.startswith('PIGLIT:'))