From 37385ec4c23ab7cda9fd7ae0b2a33b4acf82fc38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 14 Nov 2007 18:40:10 +0000 Subject: [PATCH] also support tests from business template in $INSTANCE_HOME/bt5/*/* git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17593 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/runUnitTest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index 62883df908..b318627e8c 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -225,6 +225,10 @@ def runUnitTestList(test_list, verbosity=1): os.path.join(instance_home, 'bt5')) bt5_test_list = glob(os.path.join(bt5_path, '*', 'TestTemplateItem')) sys.path.extend(bt5_test_list) + # also suport instance_home/bt5/project_bt5/* + project_bt5_test_list = glob(os.path.join(bt5_path, '*', '*', 'TestTemplateItem')) + sys.path.extend(project_bt5_test_list) + sys.path.extend((real_tests_home, tests_home)) # Make sure that locally overridden python modules are used -- 2.30.9