Commit c0418fde authored by Rafael Monnerat's avatar Rafael Monnerat 👻

It is too frequently that the ERP5Type product are not into the instance (ie. Like in buildout), so

it should be possible for developer define a specific 'REAL_INSTANCE_HOME' using environment. This 
allows developer create diferent testrunners quite easily, in case they share same Products.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35761 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58abdfab
......@@ -250,6 +250,10 @@ elif tests_framework_home.startswith('/usr/lib'):
real_instance_home = '/var/lib/erp5'
else:
real_instance_home = '/var/lib/zope'
elif os.environ.get('REAL_INSTANCE_HOME', None) is not None:
# The user Defined where is the REAL INSTANCE HOME
# So we should use it
real_instance_home = os.environ.get('REAL_INSTANCE_HOME')
else:
real_instance_home = os.path.sep.join(
tests_framework_home.split(os.path.sep)[:-3])
......
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