Merge pull request #1368 from rafalste/packaging_api
test/api: Add packaging functionality
This commit is contained in:
@@ -17,7 +17,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"
|
||||
@@ -57,7 +57,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"):
|
||||
|
Reference in New Issue
Block a user