Commit f49bd77f authored by Łukasz Nowak's avatar Łukasz Nowak

Fail in case of issues.

parent d5dffe4b
...@@ -18,6 +18,7 @@ class TestSlapOSDump(testSlapOSMixin): ...@@ -18,6 +18,7 @@ class TestSlapOSDump(testSlapOSMixin):
return path return path
def test(self): def test(self):
issue_count = 0
for dump in [ for dump in [
'ERP5Site_dumpAlarmToolConfiguration', 'ERP5Site_dumpAlarmToolConfiguration',
'ERP5Site_dumpBuilderList', 'ERP5Site_dumpBuilderList',
...@@ -34,5 +35,7 @@ class TestSlapOSDump(testSlapOSMixin): ...@@ -34,5 +35,7 @@ class TestSlapOSDump(testSlapOSMixin):
location = self.write('%s.txt' % dump, getattr(self.portal, dump)()) location = self.write('%s.txt' % dump, getattr(self.portal, dump)())
except Exception: except Exception:
ZopeTestCase._print('Problem with %s\n' % dump) ZopeTestCase._print('Problem with %s\n' % dump)
issue_count += 1
else: else:
ZopeTestCase._print('Stored dump %s in %s\n' % (dump, location)) ZopeTestCase._print('Stored dump %s in %s\n' % (dump, location))
self.assertEqual(0, issue_count)
125 126
\ No newline at end of file \ No newline at end of file
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