From c99631bc73b213565b179d310dbe04f50bf6a67a Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Wed, 27 May 2020 06:33:39 -0400 Subject: [PATCH] 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 --- test/functional/api/cas/installer.py | 2 -- test/functional/tests/conftest.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) 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:')