Commit c9222ec6 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor code to read expected failures from functional test results

parent fd0f9276
......@@ -192,7 +192,8 @@ class ERP5TypeTestSuite(TestSuite):
""", re.DOTALL | re.VERBOSE)
FTEST_PASS_FAIL_RE = re.compile(
'.*Functional Tests (?P<total>\d+) Tests, (?P<failures>\d+) Failures')
".*Functional Tests (?P<total>\d+) Tests, (?P<failures>\d+) " + \
"Failures(\,\ (?P<expected_failure>\d+) Expected failures|)")
def setup(self):
instance_home = self.instance and 'unit_test.%u' % self.instance \
......
......@@ -109,6 +109,7 @@ class ERP5UserInterface(_ERP5):
group_dict = search.groupdict()
status_dict['failure_count'] = int(group_dict['failures'])
status_dict['test_count'] = int(group_dict['total'])
status_dict['expected_failure'] = int(group_dict['expected_failure'])
return status_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment