test: Adapt weak-modules test to changes in packaging API

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski 2022-09-29 15:11:24 +02:00
parent d91e46ebb8
commit 71e2b5f586

View File

@ -15,7 +15,7 @@ from test_tools.fs_utils import (
readlink,
remove,
)
from test_tools.packaging import Packages
from api.cas.packaging import Packages
modules_links_dir = "/lib/modules/$(uname -r)/weak-updates/block/opencas"
@ -54,7 +54,7 @@ def test_weak_modules():
cas_pkg.create(TestRun.usr.working_dir)
with TestRun.step("Remove any previous installations and cleanup"):
cas_pkg.uninstall("open-cas-linux")
cas_pkg.uninstall_all_matching("open-cas-linux")
remove(modules_links_dir, recursive=True, force=True)
with TestRun.step("Install RPM packages and check for module symlinks"):