From ff9790a3ea9ca9af10302c080ce8d7e853a68eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Fri, 2 Aug 2024 20:59:19 +0200 Subject: [PATCH] Fix test_process_result_bundle_as_rpm --- test/unit/tasks/result_bundle_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/unit/tasks/result_bundle_test.py b/test/unit/tasks/result_bundle_test.py index a88a3f38..43fb9b8c 100644 --- a/test/unit/tasks/result_bundle_test.py +++ b/test/unit/tasks/result_bundle_test.py @@ -200,10 +200,11 @@ class TestResultBundleTask: mock_path_wipe, mock_path_which, mock_path_create, mock_command, mock_load, mock_Privileges_check_for_root_permissions ): - abs_path = ['bundle-dir', 'target-dir'] - def abspath(path): - return abs_path.pop() + if path == 'target_dir': + return 'target-dir' + else: + return 'bundle-dir' checksum = Mock() compress = Mock()