[Erp5-report] r29602 - /experimental/erp5.buildout/recipes/run_unit_test.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 13 15:54:36 CEST 2009
Author: nicolas.dumazet
Date: Tue Oct 13 15:54:35 2009
New Revision: 29602
URL: http://svn.erp5.org?rev=29602&view=rev
Log:
rename *products_tests_path* to *sys_path* for generic use
Modified:
experimental/erp5.buildout/recipes/run_unit_test.py
Modified: experimental/erp5.buildout/recipes/run_unit_test.py
URL: http://svn.erp5.org/experimental/erp5.buildout/recipes/run_unit_test.py?rev=29602&r1=29601&r2=29602&view=diff
==============================================================================
--- experimental/erp5.buildout/recipes/run_unit_test.py [utf8] (original)
+++ experimental/erp5.buildout/recipes/run_unit_test.py [utf8] Tue Oct 13 15:54:35 2009
@@ -50,8 +50,8 @@
init += add_product_path_template % dict(product_path=product)
for product_test_path in glob.glob(
os.path.join(product, '*', 'tests')):
- init += add_product_tests_path_template % dict(
- product_test_path=product_test_path)
+ init += add_sys_path_template % dict(
+ sys_path=product_test_path)
for bt5_path in options.get('bt5_path', '').splitlines():
if bt5_path:
@@ -100,8 +100,8 @@
add_product_path_template = '''
Products.__path__.append('%(product_path)s')'''
-add_product_tests_path_template = '''
-sys.path.append('%(product_test_path)s')'''
+add_sys_path_template = '''
+sys.path.append('%(sys_path)s')'''
add_bt5_path_template = '''
sys.argv.insert(1, '%(bt5_path)s')
More information about the Erp5-report
mailing list