From 0172735e98fdb35ab467d02436cd93dfb7166b11 Mon Sep 17 00:00:00 2001 From: Kamil Gierszewski Date: Thu, 4 Jul 2024 13:24:25 +0200 Subject: [PATCH] test-framework: rename packaging file to avoid import problems --- test_tools/{packaging.py => linux_packaging.py} | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename test_tools/{packaging.py => linux_packaging.py} (96%) diff --git a/test_tools/packaging.py b/test_tools/linux_packaging.py similarity index 96% rename from test_tools/packaging.py rename to test_tools/linux_packaging.py index 01935d8..3dd882d 100644 --- a/test_tools/packaging.py +++ b/test_tools/linux_packaging.py @@ -1,5 +1,6 @@ # # Copyright(c) 2022 Intel Corporation +# Copyright(c) 2024 Huawei Technologies Co., Ltd. # SPDX-License-Identifier: BSD-3-Clause # @@ -11,9 +12,9 @@ from core.test_run import TestRun from test_utils.output import CmdException -class RpmSet(): +class RpmSet: def __init__(self, packages_paths: list): - self.packages = packages_paths + self.packages = packages_paths def _get_package_names(self): 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): - self.packages = packages_paths + self.packages = packages_paths def _get_package_names(self): return " ".join([os.path.basename(pckg).split("_")[0] for pckg in self.packages])