kernelci / kernelci-core

Core KernelCI tools
https://kernelci.org
GNU Lesser General Public License v2.1
104 stars 97 forks source link

CHROMEOS config: docker: data: tast_parser: handle missing results file #2560

Closed a-wai closed 4 months ago

a-wai commented 4 months ago

When the test run failed before yielding a single result, the JSON file containing the results is missing. This leads to an exception being raised, rather than properly erroring out with a meaningful message.

Avoid this issue by ensuring the file is present before opening it.