Skip to content

Commit

Permalink
Merge pull request #428 from mishaschwartz/v2.3.1
Browse files Browse the repository at this point in the history
V2.3.1
  • Loading branch information
mishaschwartz authored Jan 9, 2023
2 parents 2b79b9e + 3be57a4 commit 294a796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# CHANGELOG
All notable changes to this project will be documented here.

## [v2.3.1]
- Fix a bug that prevented test file from being copied from a zip file to another location on disk (#426)

## [v2.3.0]
- Remove support for python3.6 and add support for python3.10 (#399)
- Remove requirement to skip top level directory in zip archive when downloading test files (#412)
Expand Down
2 changes: 1 addition & 1 deletion server/autotest_server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def extract_zip_stream(zip_byte_stream: bytes, destination: str) -> None:
with zipfile.ZipFile(BytesIO(zip_byte_stream)) as zf:
for fname in zf.namelist():
*dpaths, bname = fname.split(os.sep)
dest = os.path.join(destination, dpaths)
dest = os.path.join(destination, *dpaths)
filename = os.path.join(dest, bname)
if filename.endswith("/"):
os.makedirs(filename, exist_ok=True)
Expand Down

0 comments on commit 294a796

Please sign in to comment.