Commit 37385ec4 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 015b36be
......@@ -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
......
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