Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions alts/worker/runners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,19 @@ def find_and_run_init_tests():
tests_path,
)
passed_init_tests.append(init_test.name)
install_test = Path(tests_path, '0_install')
if (
install_test.exists()
and install_test.name not in passed_init_tests
):
self._run_test_file(
install_test,
remote_workdir,
local_workdir,
executors_cache,
tests_path,
)
passed_init_tests.append(install_test.name)
git_reset_hard(test_repo_path, self._logger)

find_and_run_init_tests()
Expand Down Expand Up @@ -1490,6 +1503,8 @@ def find_and_run_init_tests():
for test_file in tests_list:
if tests_to_run and test_file.name not in tests_to_run:
continue
if test_file.name in passed_init_tests:
continue
if (('0_init' not in test_file.name
or '0_install' not in test_file.name)):
self.ensure_package_is_installed(
Expand Down
Loading