Commit 4085056b authored by Jérome Perrin's avatar Jérome Perrin

when the portal cannot be created, the first test in the test class will fail,

all other will now be skipped, so that we can read the first error message easilly.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31582 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8748654b
...@@ -798,8 +798,8 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase): ...@@ -798,8 +798,8 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
title = self.getTitle() title = self.getTitle()
from Products.ERP5Type.Base import _aq_reset from Products.ERP5Type.Base import _aq_reset
if portal_name in failed_portal_installation: if portal_name in failed_portal_installation:
raise RuntimeError, 'Installation of %s already failed, giving up'\ raise backportUnittest.SkipTest('Installation of %s already failed, giving up'
% portal_name % portal_name)
try: try:
if app is None: if app is None:
app = ZopeTestCase.app() app = ZopeTestCase.app()
......
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