Commit 2b311380 authored by Boxiang Sun's avatar Boxiang Sun

Only run the failed test

parent 97403610
......@@ -37,9 +37,18 @@ class _ERP5(ERP5TypeTestSuite):
component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components"
"/test\.[^.]+\.([^.]+).py$")
for test_path in chain(
glob(path + '/product/*/tests/test*.py'),
glob(path + '/bt5/*/TestTemplateItem/test*.py'),
glob(path + '/bt5/*/TestTemplateItem/portal_components/test.*.test*.py')):
glob(path + '/bt5/erp5_officejs_support_request_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalSupportRequest.py'),
glob(path + '/bt5/erp5_trade/TestTemplateItem/portal_components/test.*.testTradeReports.py'),
glob(path + '/bt5/erp5_advanced_ecommerce_test/TestTemplateItem/portal_components/test.*.testFunctionalAdvancedECommerce.py'),
glob(path + '/bt5/erp5_officejs_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalOfficeJSSmartAssistant.py'),
glob(path + '/bt5/erp5_officejs_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalOfficeJSCodeMirror.py'),
glob(path + '/bt5/erp5_core_test/TestTemplateItem/portal_components/test.*.testWorkflowHistoryList.py'),
glob(path + '/bt5/erp5_web_renderjs_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalRJSRelationField.py'),
glob(path + '/bt5/erp5_user_tutorial/TestTemplateItem/portal_components/test.*.testFunctionalStandaloneUserTutorial.py'),
glob(path + '/bt5/erp5_officejs_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalOfficeJSoOoSpreadsheet.py'),
glob(path + '/bt5/erp5_accounting_renderjs_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalRJSAccountingReport.py'),
glob(path + '/bt5/erp5_web_renderjs_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalRJSServiceWorker.py'),
glob(path + '/bt5/erp5_officejs_ui_test/TestTemplateItem/portal_components/test.*.testFunctionalOfficeJSoOoPresentation.py')):
component_re_match = component_re.match(test_path)
if component_re_match is not None:
test_case = "%s:%s" % (component_re_match.group(1),
......
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