Commit 7f7cc0cf authored by Vincent Pelletier's avatar Vincent Pelletier

Return unique test names.

Homonyms cannot be distinguished by test runner, so if there are multiple
matches (because of duplicated product, or duplicate path_list entry, ...)
it will be just the same test executed multiple time.
parent 9828ce35
...@@ -272,8 +272,8 @@ class ProjectTestSuite(ERP5TypeTestSuite): ...@@ -272,8 +272,8 @@ class ProjectTestSuite(ERP5TypeTestSuite):
for bt_dir in self._searchDirectory('bt5', path_list): for bt_dir in self._searchDirectory('bt5', path_list):
for bt_id in self._bt_list: for bt_id in self._bt_list:
extend(_glob(pjoin(bt_dir, bt_id, bt_test_file_glob))) extend(_glob(pjoin(bt_dir, bt_id, bt_test_file_glob)))
return [path.splitext(path.basename(name))[0] return list(frozenset((path.splitext(path.basename(name))[0]
for name in test_file_list] for name in test_file_list)))
class SavedProjectTestSuite(ERP5TypeTestSuite): class SavedProjectTestSuite(ERP5TypeTestSuite):
""" """
......
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