summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2018-10-19 14:37:35 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2018-12-20 09:23:08 -0800
commit0bae6626a4e825c5138aca1da8a32d1e1de8f339 (patch)
tree13803c1d410abc0d2b9e6dfe0ab63282ef61045e
parent9110c727bbec39713058f1ec572a0f1272758b8e (diff)
downloadspack-0bae6626a4e825c5138aca1da8a32d1e1de8f339.tar.gz
spack-0bae6626a4e825c5138aca1da8a32d1e1de8f339.tar.bz2
spack-0bae6626a4e825c5138aca1da8a32d1e1de8f339.tar.xz
spack-0bae6626a4e825c5138aca1da8a32d1e1de8f339.zip
Avoid UnboundLocalError
Make sure cdash_phase is defined before referring to it.
-rw-r--r--lib/spack/spack/reporters/cdash.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/reporters/cdash.py b/lib/spack/spack/reporters/cdash.py
index e27d7e9728..7093afa2ef 100644
--- a/lib/spack/spack/reporters/cdash.py
+++ b/lib/spack/spack/reporters/cdash.py
@@ -77,6 +77,7 @@ class CDash(Reporter):
# Parse output phase-by-phase.
phase_regexp = re.compile(r"Executing phase: '(.*)'")
+ cdash_phase = ''
for spec in report_data['specs']:
for package in spec['packages']:
if 'stdout' in package: