Closed Bug 1038418 Opened 10 years ago Closed 10 years ago

UnboundLocalError: local variable 'html_str' referenced before assignment

Categories

(Firefox OS Graveyard :: Certification Suite, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Unassigned)

References

Details

When some kinds of errors occur during cert suite execution, I've seen this error crop up, which kills the run entirely:

 5:00.25 LOG: MainThread CRITICAL Encountered error:
Traceback (most recent call last):
  File "/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-packages/fxos_certsuite-0.1-py2.7.egg/certsuite/harness.py", line 321, in run_tests
    runner.run_suite(suite, groups, log_manager)
  File "/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-packages/fxos_certsuite-0.1-py2.7.egg/certsuite/harness.py", line 210, in run_suite
    log_manager.add_subsuite_report(structured_path)
  File "/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-packages/fxos_certsuite-0.1-py2.7.egg/certsuite/harness.py", line 94, in add_subsuite_report
    self.zip_file.writestr(path, html_str)
UnboundLocalError: local variable 'html_str' referenced before assignment
https://github.com/mozilla-b2g/fxos-certsuite/commit/399f9df8d9eee6cff31226a369e3b31aa6b995e1
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.