mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Isolate test target
This commit is contained in:
@ -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"])
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user