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:
parent
8e50f1c219
commit
c99631bc73
@ -59,8 +59,6 @@ def install_opencas():
|
||||
|
||||
|
||||
def set_up_opencas(version=None):
|
||||
rsync_opencas_sources()
|
||||
|
||||
_clean_opencas_repo()
|
||||
|
||||
if version:
|
||||
|
@ -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:')
|
||||
|
Loading…
Reference in New Issue
Block a user