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):
title = self.getTitle()
from Products.ERP5Type.Base import _aq_reset
if portal_name in failed_portal_installation:
raise RuntimeError, 'Installation of %s already failed, giving up'\
% portal_name
raise backportUnittest.SkipTest('Installation of %s already failed, giving up'
% portal_name)
try:
if app is None:
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