Commit 087bb064 authored by Sebastien Robin's avatar Sebastien Robin

check products in the right path

parent 14be3c22
......@@ -45,8 +45,8 @@ class ERP5(_ERP5):
def getTestList(self):
test_list = []
for test_path in glob.glob('product/*/tests/test*.py') + \
glob.glob('bt5/*/TestTemplateItem/test*.py'):
for test_path in glob.glob('%s/product/*/tests/test*.py' % sys.path[0]) + \
glob.glob('%s/bt5/*/TestTemplateItem/test*.py' % sys.path[0]):
test_case = test_path.split(os.sep)[-1][:-3] # remove .py
product = test_path.split(os.sep)[-3]
# don't test 3rd party products
......
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