test api: don't copy sources in set_up_opencas()

This way set_up_opencas() can be reused in tests

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2020-05-27 06:33:39 -04:00
parent 8e50f1c219
commit c99631bc73
2 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,6 @@ def install_opencas():
def set_up_opencas(version=None):
rsync_opencas_sources()
_clean_opencas_repo()
if version:

View File

@ -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:')