Fix test_process_result_bundle_as_rpm

This commit is contained in:
Marcus Schäfer 2024-08-02 20:59:19 +02:00
parent a93da9fe9d
commit ff9790a3ea
No known key found for this signature in database
GPG Key ID: A16C1128698C8CAC

View File

@ -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()