# HG changeset patch # User RhodeCode Admin # Date 2024-11-12 15:40:10 # Node ID cccd61c3b9872a860178ff41a477113fc4e48e57 # Parent 6d33e50429de262edd12c3848a41d5a4b543b86e fix(tests): on jenkins ensure re-creation of the path diff --git a/rhodecode/tests/vcs/test_git.py b/rhodecode/tests/vcs/test_git.py --- a/rhodecode/tests/vcs/test_git.py +++ b/rhodecode/tests/vcs/test_git.py @@ -994,6 +994,8 @@ class TestLargeFileRepo(object): # Note: oid path depends on LFSOidStore.store_suffix. Once it will be changed update below line accordingly oid_destination = os.path.join(git_largefiles_store, f"objects/{oid[:2]}/{oid[2:4]}/{oid}") + spec_path = os.path.dirname(oid_destination) + os.makedirs(spec_path, exist_ok=True) shutil.copy(oid_path, oid_destination) lf_node = node.get_largefile_node()