[Erp5-report] r9003 - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 2 19:40:33 CEST 2006
Author: jerome
Date: Wed Aug 2 19:40:23 2006
New Revision: 9003
URL: http://svn.erp5.org?rev=9003&view=rev
Log:
check broken symlink when initializingInstanceHome
remove print
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=9003&r1=9002&r2=9003&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py Wed Aug 2 19:40:23 2006
@@ -38,10 +38,14 @@
src = os.path.join(real_instance_home, d)
dst = os.path.join(instance_home, d)
if not os.path.exists(dst):
+ if os.path.lexists(dst):
+ raise RuntimeError, '%s is a broken symlink' % dst
os.symlink(src, dst)
src = os.path.join(tests_framework_home, 'custom_zodb.py')
dst = os.path.join(instance_home, 'custom_zodb.py')
if not os.path.exists(dst):
+ if os.path.lexists(dst):
+ raise RuntimeError, '%s is a broken symlink' % dst
os.symlink(src, dst)
# site specific variables
@@ -179,7 +183,6 @@
sys.exit()
elif opt == "--erp5_sql_connection_string":
os.environ["erp5_sql_connection_string"] = arg
- print "set to ", arg
elif opt == "--cmf_activity_sql_connection_string":
os.environ["cmf_activity_sql_connection_string"] = arg
elif opt == "--erp5_sql_deferred_connection_string":
More information about the Erp5-report
mailing list