| commit | 317d89a35359b0dd59bd92a06a80fc902305c83c | [log] [tgz] |
|---|---|---|
| author | Darren Wu <[email protected]> | Sun Feb 04 22:27:28 2024 |
| committer | Chromeos LUCI <[email protected]> | Mon Feb 05 03:24:16 2024 |
| tree | 21e59915ed8df95b06d0acfa92a5a1c70eca90f3 | |
| parent | 97ff835bba01a5fdf8455fcb7558472a396c9b95 [diff] |
crospts: Fix the error when no data in results-chart.json If the CrosPTS failed to run the tast test, there is no data in results-chart.json. This causes the generating CSV failure. Fix this error by skipping the no keys in JSON object. Skip the data uploading, if there is no any results chart data produced. BUG=b:323753496 TEST=./run_crospts.py -p all -u cns <DUT> with an error empty results-chart.json Change-Id: I7cb6537b77a224c59a6c2486ceebc75ba9a51791 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crospts/+/5267197 Tested-by: Darren Wu <[email protected]> Reviewed-by: David Stevens <[email protected]> Commit-Queue: Darren Wu <[email protected]>