mike upton has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/36615 )

Change subject: tests: fix dezip of ubuntu images in long regr
......................................................................

tests: fix dezip of ubuntu images in long regr

needed to change output open from 'w' to 'wb'
to write binary format

Change-Id: Ia176d86a8ab8cc083ffc9508e051b667936eca2c
---
M tests/gem5/fixture.py
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/tests/gem5/fixture.py b/tests/gem5/fixture.py
index e8a67b8..467eb43 100644
--- a/tests/gem5/fixture.py
+++ b/tests/gem5/fixture.py
@@ -297,7 +297,7 @@
             gzipped_filename = self.filename + ".gz"
             urllib.request.urlretrieve(self.url, gzipped_filename)

-            with open(self.filename, 'w') as outfile:
+            with open(self.filename, 'wb') as outfile:
                 with gzip.open(gzipped_filename, 'r') as infile:
                     shutil.copyfileobj(infile, outfile)


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/36615
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ia176d86a8ab8cc083ffc9508e051b667936eca2c
Gerrit-Change-Number: 36615
Gerrit-PatchSet: 1
Gerrit-Owner: mike upton <michaelup...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to