Commit 142e1b29 authored by Nicolas Dumazet's avatar Nicolas Dumazet

depending on the test instance, unit_test/import can be broken


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0de4c2df
......@@ -56,7 +56,11 @@ class TestPortalTypeClass(ERP5TypeTestCase):
import_path = os.path.join(os.environ['INSTANCE_HOME'], 'import')
if not os.path.exists(import_path):
if os.path.islink(import_path):
# broken symlink
os.unlink(import_path)
os.mkdir(import_path)
shutil.copy(zexp_path, import_path)
person_module = self.getPortal().person_module
......
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