From 815f7592320f30198cc395c13e549a1e19182b28 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Sat, 31 Jan 2026 19:04:10 +0100 Subject: [PATCH 1/2] Use /tmp for storing test run data That way it's guaranteed that the path actually exists at all the times. Signed-off-by: Robert Baldyga --- core/test_run_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/test_run_utils.py b/core/test_run_utils.py index cb971b1..59ba2ce 100644 --- a/core/test_run_utils.py +++ b/core/test_run_utils.py @@ -1,6 +1,7 @@ # # Copyright(c) 2019-2021 Intel Corporation # Copyright(c) 2023-2025 Huawei Technologies Co., Ltd. +# Copyright(c) 2026 Unvertical # SPDX-License-Identifier: BSD-3-Clause # @@ -23,7 +24,7 @@ from test_utils.dut import Dut TestRun = core.test_run.TestRun -TestRun.TEST_RUN_DATA_PATH = "/tmp/test_data" +TestRun.TEST_RUN_DATA_PATH = "/tmp/" @classmethod From 9c2be17902a8349c3200bae50ab87441f5cc4485 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Sat, 31 Jan 2026 19:04:44 +0100 Subject: [PATCH 2/2] size: Allow both int and float arguments for the arithmetics Signed-off-by: Robert Baldyga --- type_def/size.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/type_def/size.py b/type_def/size.py index edcffe5..b262a16 100644 --- a/type_def/size.py +++ b/type_def/size.py @@ -173,15 +173,15 @@ def __sub__(self, other): ) @multimethod - def __mul__(self, other: float): + def __mul__(self, other: float | int): return Size(math.ceil(self.get_value() * other)) @multimethod - def __rmul__(self, other: float): + def __rmul__(self, other: float | int): return Size(math.ceil(self.get_value() * other)) @multimethod - def __truediv__(self, other: int): + def __truediv__(self, other: float | int): if other == 0: raise ValueError("Divisor must not be equal to 0.") return Size(math.ceil(self.get_value() / other))