diff --git a/test/functional/api/cas/installer.py b/test/functional/api/cas/installer.py index 4cb6394..7dbec61 100644 --- a/test/functional/api/cas/installer.py +++ b/test/functional/api/cas/installer.py @@ -59,8 +59,6 @@ def install_opencas(): def set_up_opencas(version=None): - rsync_opencas_sources() - _clean_opencas_repo() if version: diff --git a/test/functional/tests/conftest.py b/test/functional/tests/conftest.py index 757d122..526c976 100644 --- a/test/functional/tests/conftest.py +++ b/test/functional/tests/conftest.py @@ -172,8 +172,10 @@ def base_prepare(item): raise Exception(f"Failed to remove partitions from {disk}") if get_force_param(item) and not TestRun.usr.already_updated: + installer.rsync_opencas_sources() installer.reinstall_opencas() elif not installer.check_if_installed(): + installer.rsync_opencas_sources() installer.set_up_opencas() TestRun.usr.already_updated = True TestRun.LOGGER.add_build_info(f'Commit hash:')