aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-06-26 07:40:40 +0200
committerTristan Gingold <tgingold@free.fr>2022-06-26 07:40:40 +0200
commitd5923ef7fabe2091ae6da5f0c2707ee110f8c7d1 (patch)
treef36dfd8640832ce626aa08e09f7091862c187ace /testsuite
parentc04f797dd4e9593b00c3abe72ba375932806305c (diff)
downloadghdl-d5923ef7fabe2091ae6da5f0c2707ee110f8c7d1.tar.gz
ghdl-d5923ef7fabe2091ae6da5f0c2707ee110f8c7d1.tar.bz2
ghdl-d5923ef7fabe2091ae6da5f0c2707ee110f8c7d1.zip
testsuite/gna/testsuite.py: add support for python3
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/gna/testsuite.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/gna/testsuite.py b/testsuite/gna/testsuite.py
index a27660d36..ec60a8339 100755
--- a/testsuite/gna/testsuite.py
+++ b/testsuite/gna/testsuite.py
@@ -15,7 +15,7 @@ class Job(object):
def __init__(self, dirname, poll):
self.dirname = dirname
self.poll = poll
- self.out = ''
+ self.out = b''
def start(self):
self.p = subprocess.Popen(
@@ -69,7 +69,10 @@ def run(keep):
j.out += d
for j in done:
print('Finish: {}'.format(j.dirname))
- print(j.out)
+ s = j.out
+ if sys.version_info[0] >= 3:
+ s = s.decode('latin-1')
+ print(s)
code = j.wait()
if code != 0:
print('############### Error for {}'.format(j.dirname))