Linaro / squadplugins

GNU Affero General Public License v3.0
1 stars 6 forks source link

tradefed plugin crashes when there is no data from VTS/CTS #1

Closed mwasilew closed 6 years ago

mwasilew commented 6 years ago
Plugin postprocessing error: invalid file: None
Traceback (most recent call last):
  File "/srv/qa-reports.linaro.org/lib/python3.5/site-packages/squad/core/tasks/__init__.py", line 216, in __call__
    self.__call_plugin__(plugin, testrun)
  File "/srv/qa-reports.linaro.org/lib/python3.5/site-packages/squad/core/tasks/__init__.py", line 221, in __call_plugin__
    plugin.postprocess_testrun(testrun)
  File "/srv/qa-reports.linaro.org/lib/python3.5/site-packages/tradefed/__init__.py", line 113, in postprocess_testrun
    self.__assign_test_log(buf, failed)
  File "/srv/qa-reports.linaro.org/lib/python3.5/site-packages/tradefed/__init__.py", line 18, in __assign_test_log
    tradefed_tree = ET.parse(buf)
  File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1184, in parse
    tree.parse(source, parser)
  File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 585, in parse
    source = open(source, "rb")
TypeError: invalid file: None
mwasilew commented 6 years ago

Fixed in 285ace066180533f00cb33808a390e9565295973