[Erp5-report] r35761 rafael - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 28 23:48:24 CEST 2010


Author: rafael
Date: Fri May 28 23:48:23 2010
New Revision: 35761

URL: http://svn.erp5.org?rev=35761&view=rev
Log:
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.


Modified:
    erp5/trunk/products/ERP5Type/tests/runUnitTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runUnitTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runUnitTest.py?rev=35761&r1=35760&r2=35761&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] Fri May 28 23:48:23 2010
@@ -250,6 +250,10 @@
     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])




More information about the Erp5-report mailing list