Merge pull request #3 from Kamoppl/kamilg/rename_packaging

test-framework: rename packaging file to avoid import problems
This commit is contained in:
Kamil Gierszewski 2024-07-04 13:49:23 +02:00 committed by GitHub
commit fcbce734de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
# #
# Copyright(c) 2022 Intel Corporation # Copyright(c) 2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
# #
@ -11,9 +12,9 @@ from core.test_run import TestRun
from test_utils.output import CmdException from test_utils.output import CmdException
class RpmSet(): class RpmSet:
def __init__(self, packages_paths: list): def __init__(self, packages_paths: list):
self.packages = packages_paths self.packages = packages_paths
def _get_package_names(self): def _get_package_names(self):
return " ".join([os.path.splitext(os.path.basename(pckg))[0] for pckg in self.packages]) return " ".join([os.path.splitext(os.path.basename(pckg))[0] for pckg in self.packages])
@ -66,9 +67,9 @@ class RpmSet():
) )
class DebSet(): class DebSet:
def __init__(self, packages_paths: list): def __init__(self, packages_paths: list):
self.packages = packages_paths self.packages = packages_paths
def _get_package_names(self): def _get_package_names(self):
return " ".join([os.path.basename(pckg).split("_")[0] for pckg in self.packages]) return " ".join([os.path.basename(pckg).split("_")[0] for pckg in self.packages])