Merge pull request #1368 from rafalste/packaging_api

test/api: Add packaging functionality
This commit is contained in:
Karolina Rogowska
2022-11-23 15:33:04 +01:00
committed by GitHub
2 changed files with 135 additions and 2 deletions

View File

@@ -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"):