Upgrade Tests: Create the destination directory before copying a client library from the local repository

This commit is contained in:
Vaidas Gasiunas 2022-04-29 16:41:03 +02:00
parent 449d5aec61
commit 1ef33db1ef
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ class UpgradeTest:
return
src_lib_file = self.local_binary_repo.joinpath(version, "lib", "libfdb_c-{}.so".format(version))
assert src_lib_file.exists(), "Missing file {} in the local old binaries repository".format(src_lib_file)
self.download_dir.joinpath(version).mkdir(parents=True, exist_ok=True)
shutil.copyfile(src_lib_file, dest_lib_file)
assert dest_lib_file.exists(), "{} does not exist".format(dest_lib_file)