Fixed physics tests on linux (#5579)

* Fixed physics tests on linux

* Fixed unit tests because of new implementation

* Fixed bug in lock, fixed unit tests

Co-authored-by: aljanru <aljanru@uc5564ff5a5ee55.ant.amazon.com>
This commit is contained in:
AMZN-AlexOteiza
2021-11-12 16:09:09 +00:00
committed by GitHub
parent 8bbb99d741
commit cb93bafc4f
3 changed files with 24 additions and 6 deletions
@@ -218,6 +218,7 @@ class FileManagement:
src_file_path = os.path.join(src_path, src_file)
if os.path.exists(target_file_path):
fs.unlock_file(target_file_path)
os.makedirs(target_path, exist_ok=True)
shutil.copyfile(src_file_path, target_file_path)
@staticmethod