forked from platformio/platformio-core
Refactor project config options
This commit is contained in:
@@ -107,9 +107,8 @@ def cli( # pylint: disable=redefined-builtin
|
||||
# filter and ignore patterns
|
||||
patterns = dict(filter=list(filter), ignore=list(ignore))
|
||||
for key in patterns:
|
||||
if config.has_option(section, "test_%s" % key):
|
||||
patterns[key].extend(
|
||||
config.getlist(section, "test_%s" % key))
|
||||
patterns[key].extend(
|
||||
config.get(section, "test_%s" % key, []))
|
||||
|
||||
skip_conditions = [
|
||||
environment and envname not in environment,
|
||||
|
||||
@@ -92,9 +92,10 @@ class TestProcessorBase(object):
|
||||
self._outputcpp_generated = False
|
||||
|
||||
def get_transport(self):
|
||||
transport = self.env_options.get("framework")
|
||||
if self.env_options.get("platform") == "native":
|
||||
transport = "native"
|
||||
elif "framework" in self.env_options:
|
||||
transport = self.env_options.get("framework")[0]
|
||||
if "test_transport" in self.env_options:
|
||||
transport = self.env_options['test_transport']
|
||||
if transport not in TRANSPORT_OPTIONS:
|
||||
|
||||
Reference in New Issue
Block a user