diff --git a/platformio/commands/ci.py b/platformio/commands/ci.py index 038943c3..5303932a 100644 --- a/platformio/commands/ci.py +++ b/platformio/commands/ci.py @@ -33,7 +33,7 @@ except ImportError: from ConfigParser import ConfigParser -def validate_path(ctx, param, value): # pylint: disable=W0613 +def validate_path(ctx, param, value): # pylint: disable=unused-argument invalid_path = None value = list(value) for i, p in enumerate(value): @@ -87,8 +87,8 @@ def cli(ctx, # pylint: disable=R0913 project_conf, verbose): - if not src: - src = getenv("PLATFORMIO_CI_SRC", "").split(":") + if not src and getenv("PLATFORMIO_CI_SRC"): + src = validate_path(ctx, None, getenv("PLATFORMIO_CI_SRC").split(":")) if not src: raise click.BadParameter("Missing argument 'src'") diff --git a/platformio/util.py b/platformio/util.py index b6f40fd5..c8b8c18f 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -259,9 +259,7 @@ def is_ci(): def exec_command(*args, **kwargs): result = {"out": None, "err": None, "returncode": None} - default = dict( - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + default = dict(stdout=subprocess.PIPE, stderr=subprocess.PIPE) default.update(kwargs) kwargs = default