test: Adapt weak-modules test to changes in packaging API
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
parent
d91e46ebb8
commit
71e2b5f586
@ -15,7 +15,7 @@ from test_tools.fs_utils import (
|
|||||||
readlink,
|
readlink,
|
||||||
remove,
|
remove,
|
||||||
)
|
)
|
||||||
from test_tools.packaging import Packages
|
from api.cas.packaging import Packages
|
||||||
|
|
||||||
|
|
||||||
modules_links_dir = "/lib/modules/$(uname -r)/weak-updates/block/opencas"
|
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)
|
cas_pkg.create(TestRun.usr.working_dir)
|
||||||
|
|
||||||
with TestRun.step("Remove any previous installations and cleanup"):
|
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)
|
remove(modules_links_dir, recursive=True, force=True)
|
||||||
|
|
||||||
with TestRun.step("Install RPM packages and check for module symlinks"):
|
with TestRun.step("Install RPM packages and check for module symlinks"):
|
||||||
|
Loading…
Reference in New Issue
Block a user