From 2676e77ea4c8bceaa26557f57b22fc0839048e9a Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 11 Oct 2016 00:06:09 +0300 Subject: [PATCH] Isolate test target --- platformio/builder/main.py | 2 +- platformio/builder/tools/platformio.py | 2 +- platformio/managers/platform.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio/builder/main.py b/platformio/builder/main.py index d5361da1..ef052567 100644 --- a/platformio/builder/main.py +++ b/platformio/builder/main.py @@ -133,7 +133,7 @@ env.SConscriptChdir(0) env.SConsignFile(join("$PROJECTPIOENVS_DIR", ".sconsign.dblite")) env.SConscript("$BUILD_SCRIPT") -AlwaysBuild(env.Alias("test", DEFAULT_TARGETS + ["size"])) +AlwaysBuild(env.Alias("__test", DEFAULT_TARGETS + ["size"])) if "UPLOAD_FLAGS" in env: env.Append(UPLOADERFLAGS=["$UPLOAD_FLAGS"]) diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index d17a205c..06eee2a9 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -86,7 +86,7 @@ def BuildProgram(env): src_filter=env.get("SRC_FILTER"), duplicate=False)) - if "test" in COMMAND_LINE_TARGETS: + if "__test" in COMMAND_LINE_TARGETS: env.Append(PIOBUILDFILES=env.ProcessTest()) if not env['PIOBUILDFILES'] and not COMMAND_LINE_TARGETS: diff --git a/platformio/managers/platform.py b/platformio/managers/platform.py index e1498960..546cd65b 100644 --- a/platformio/managers/platform.py +++ b/platformio/managers/platform.py @@ -459,7 +459,7 @@ class PlatformBase(PlatformPackagesMixin, PlatformRunMixin): # skip all packages, allow only upload tools self.packages[_name]['optional'] = True - if "test" in targets and "tool-unity" not in self.packages: + if "__test" in targets and "tool-unity" not in self.packages: self.packages['tool-unity'] = { "version": "~1.20302.1", "optional": False