From 71e2b5f5867daf5b7a615f34c4bd177bf6f74e5b Mon Sep 17 00:00:00 2001 From: Rafal Stefanowski Date: Thu, 29 Sep 2022 15:11:24 +0200 Subject: [PATCH] test: Adapt weak-modules test to changes in packaging API Signed-off-by: Rafal Stefanowski --- test/functional/tests/misc/test_weak_modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/tests/misc/test_weak_modules.py b/test/functional/tests/misc/test_weak_modules.py index 2aadf7c..c4b5c13 100644 --- a/test/functional/tests/misc/test_weak_modules.py +++ b/test/functional/tests/misc/test_weak_modules.py @@ -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"):