summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2019-10-16 10:46:56 -0600
committerScott Wittenburg <scott.wittenburg@kitware.com>2019-12-05 11:37:03 -0700
commita288449f0b23acbec128bab943e42b403f4f4df9 (patch)
treea529eac814c7fd9fd9943024981f1df9cebd7ea5 /lib
parent831133a4c3c72bc09355ac835bbba87991d05502 (diff)
downloadspack-a288449f0b23acbec128bab943e42b403f4f4df9.tar.gz
spack-a288449f0b23acbec128bab943e42b403f4f4df9.tar.bz2
spack-a288449f0b23acbec128bab943e42b403f4f4df9.tar.xz
spack-a288449f0b23acbec128bab943e42b403f4f4df9.zip
cdash: fix reporting issue with python 3
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/reporters/cdash.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/reporters/cdash.py b/lib/spack/spack/reporters/cdash.py
index 58095b10ba..592209aca4 100644
--- a/lib/spack/spack/reporters/cdash.py
+++ b/lib/spack/spack/reporters/cdash.py
@@ -302,7 +302,10 @@ class CDash(Reporter):
request.get_method = lambda: 'PUT'
response = opener.open(request)
if self.current_package_name not in self.buildIds:
- match = self.buildid_regexp.search(response.read())
+ resp_value = response.read()
+ if isinstance(resp_value, bytes):
+ resp_value = resp_value.decode('utf-8')
+ match = self.buildid_regexp.search(resp_value)
if match:
buildid = match.group(1)
self.buildIds[self.current_package_name] = buildid