Commit d7b7733b authored by Romain Courteaud's avatar Romain Courteaud

[HARDCODED] less tests

parent 06f73c2d
...@@ -38,7 +38,7 @@ class SlapOSCloud(SavedTestSuite, ProjectTestSuite): ...@@ -38,7 +38,7 @@ class SlapOSCloud(SavedTestSuite, ProjectTestSuite):
component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components" component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components"
"/test\.[^.]+\.([^.]+).py$") "/test\.[^.]+\.([^.]+).py$")
for test_path in ( for test_path in (
#glob('%s/product/*/tests/test*.py' % path) + glob('%s/product/*/tests/test*.py' % path) +
glob('%s/bt5/*/TestTemplateItem/test*.py' % path) + glob('%s/bt5/*/TestTemplateItem/test*.py' % path) +
glob('%s/bt5/*/TestTemplateItem/portal_components/test.*.test*.py' % path) + glob('%s/bt5/*/TestTemplateItem/portal_components/test.*.test*.py' % path) +
glob('%s/bt5/*/TestTemplateItem/test*.py' % erp5_path) + glob('%s/bt5/*/TestTemplateItem/test*.py' % erp5_path) +
...@@ -50,7 +50,10 @@ class SlapOSCloud(SavedTestSuite, ProjectTestSuite): ...@@ -50,7 +50,10 @@ class SlapOSCloud(SavedTestSuite, ProjectTestSuite):
else: else:
test_case = test_path.split(os.sep)[-1][:-3] # remove .py test_case = test_path.split(os.sep)[-1][:-3] # remove .py
# Filter bt tests to run from _bt_list list # Filter bt tests to run from _bt_list list
if test_path.split(os.sep)[-2] != 'tests': if test_path.split(os.sep)[-2] == 'tests':
# Skip product tests for now
continue
else:
if test_path.split(os.sep)[-2] == 'portal_components': if test_path.split(os.sep)[-2] == 'portal_components':
product = test_path.split(os.sep)[-4] product = test_path.split(os.sep)[-4]
else: else:
......
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