Avoid UnboundLocalError
Make sure cdash_phase is defined before referring to it.
This commit is contained in:
parent
9110c727bb
commit
0bae6626a4
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ def build_report(self, filename, report_data):
|
|||
|
||||
# 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:
|
||||
|
|
Loading…
Reference in a new issue