mike upton has submitted this change. ( 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
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36615
Reviewed-by: Jason Lowe-Power <[email protected]>
Reviewed-by: Bobby R. Bruce <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
Maintainer: Bobby R. Bruce <[email protected]>
Tested-by: kokoro <[email protected]>
---
M tests/gem5/fixture.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
  Bobby R. Bruce: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass



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: 2
Gerrit-Owner: mike upton <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-Reviewer: mike upton <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to