forked from platformio/platformio-core
Init dev-platform with autoinstallation
This commit is contained in:
1 parent
1ffa924483
commit
a25a86e42f
5 files changed
+21
-22
No files matched your search
@@ -23,10 +23,10 @@ import click
|
||||
from tabulate import tabulate
|
||||
|
||||
from platformio import app, exception, fs, util
|
||||
from platformio.commands.platform import init_platform
|
||||
from platformio.commands.test.embedded import EmbeddedTestProcessor
|
||||
from platformio.commands.test.helpers import get_test_names
|
||||
from platformio.commands.test.native import NativeTestProcessor
|
||||
from platformio.platform.factory import PlatformFactory
|
||||
from platformio.project.config import ProjectConfig
|
||||
|
||||
|
||||
@@ -142,7 +142,9 @@ def cli( # pylint: disable=redefined-builtin
|
||||
cls = (
|
||||
EmbeddedTestProcessor
|
||||
if config.get(section, "platform")
|
||||
and init_platform(config.get(section, "platform")).is_embedded()
|
||||
and PlatformFactory.new(
|
||||
config.get(section, "platform"), autoinstall=True
|
||||
).is_embedded()
|
||||
else NativeTestProcessor
|
||||
)
|
||||
tp = cls(
|
||||
|
||||
Reference in new issue
Block a user