From 331ff2dc9c0e3a4e0cb5852031a3728c4cfbb9fe Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 20 Mar 2023 12:38:40 -0600 Subject: [PATCH] Format code --- platformio/run/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platformio/run/cli.py b/platformio/run/cli.py index 96ea2b89..f9f7a07a 100644 --- a/platformio/run/cli.py +++ b/platformio/run/cli.py @@ -103,7 +103,6 @@ def cli( is_test_running = CTX_META_TEST_IS_RUNNING in ctx.meta - results = [] only_monitor = "monitor" in target and len(target) == 1 command_failed = False with fs.cd(project_dir): @@ -131,6 +130,7 @@ def cli( handle_legacy_libdeps(project_dir, config) default_envs = config.default_envs() + results = [] for env in config.envs(): skipenv = any( [ @@ -160,7 +160,6 @@ def cli( verbose, ) ) - command_failed = any(r.get("succeeded") is False for r in results) if ( not is_test_running