Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/functional/api/cas/cas_packaging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright(c) 2022 Intel Corporation
# Copyright(c) 2024-2025 Huawei Technologies Co., Ltd.
# Copyright(c) 2026 Unvertical
# SPDX-License-Identifier: BSD-3-Clause
#

Expand Down Expand Up @@ -48,8 +49,11 @@ def create(
debug: bool = False,
arch: str = "",
source: bool = False,
dkms: bool = False,
):
TestRun.LOGGER.info("Creating Open CAS RPM packages")
TestRun.LOGGER.info(
f"Creating Open CAS RPM packages ({'DKMS' if dkms else 'prebuilt'} modules)"
)

self.packages_dir = (
packages_dir or self.packages_dir or os.path.join(sources_dir, "packages")
Expand All @@ -62,6 +66,7 @@ def create(
debug,
arch,
source,
dkms,
)


Expand Down Expand Up @@ -115,6 +120,7 @@ def create_packages(
debug: bool = False,
arch: str = "",
source: bool = False,
dkms: bool = False,
):
pckgen = os.path.join(sources_dir, "tools", "pckgen.sh")

Expand All @@ -125,6 +131,8 @@ def create_packages(
opts += f" --arch {arch}"
if source:
opts += f" {'srpm' if package_type.lower() == 'rpm' else 'dsc'}"
if dkms:
opts += " --with-dkms"

packages_before = get_packages_list(package_type, packages_dir)
TestRun.executor.run_expect_success(f"{pckgen} {opts} {sources_dir}")
Expand Down
Loading
Loading