From f3d8c30f954425a84ba97204cf343e75c037e89e Mon Sep 17 00:00:00 2001 From: valeros Date: Fri, 25 Oct 2019 15:50:19 +0300 Subject: [PATCH] Skip ignored environments when exporting check report in JSON format --- platformio/commands/check/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio/commands/check/command.py b/platformio/commands/check/command.py index b6fc2bec..d1f01f5c 100644 --- a/platformio/commands/check/command.py +++ b/platformio/commands/check/command.py @@ -168,9 +168,10 @@ def cli( def results_to_json(raw): results = [] for item in raw: + if item.get("succeeded") is None: + continue item.update( { - "ignored": item.get("succeeded") is None, "succeeded": bool(item.get("succeeded")), "defects": [d.as_dict() for d in item.get("defects", [])], }