According to contributing guide my build fails on step 8.
I run Ubuntu 20.04.2-Ubuntu. Running commit e0b72202fddf075973b2d353ba988f67148324b6
.
The error is:
[gw1] FAILED tests/commands/test_ci.py::test_ci_boards
========================================================================================== FAILURES ===========================================================================================
_______________________________________________________________________________________ test_ci_boards ________________________________________________________________________________________
[gw1] linux – Python 3.7.12 /home/kacper/Workspace/PlatformioCore/.tox/py37/bin/pythonclirunner = <click.testing.CliRunner object at 0x7fcad6b75790>, validate_cliresult = <function validate_cliresult..decorator at 0x7fcad6bd8d40>
def test_ci_boards(clirunner, validate_cliresult): result = clirunner.invoke( cmd_ci, [ join("examples", "wiring-blink", "src", "main.cpp"), "-b", "uno", "-b", "leonardo", ], )
validate_cliresult(result)
tests/commands/test_ci.py:38:
result = <Result SystemExit(2)>
def decorator(result):
assert result.exit_code == 0, "{} => {}".format(result.exception, result.output)
E AssertionError: 2 => Usage: ci [OPTIONS] [SRC]…
E Try ‘ci --help’ for help.
E
E Error: Invalid value for ‘[SRC]…’: Found invalid path: examples/wiring-blink/src/main.cpp
E
E assert 2 == 0
E +2
E -0tests/conftest.py:33: AssertionError
====================================================================================== warnings summary =======================================================================================
I attach the entire log:
$ make test
py.test --verbose --capture=no --exitfirst -n 6 --dist=loadscope tests --ignore tests/test_examples.py
===================================================================================== test session starts =====================================================================================
platform linux -- Python 3.7.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /home/kacper/Workspace/PlatformioCore/.tox/py37/bin/python
cachedir: .pytest_cache
rootdir: /home/kacper/Workspace/PlatformioCore
plugins: forked-1.3.0, anyio-3.3.2, xdist-2.4.0
[gw0] linux Python 3.7.12 cwd: /home/kacper/Workspace/PlatformioCore
[gw1] linux Python 3.7.12 cwd: /home/kacper/Workspace/PlatformioCore
[gw2] linux Python 3.7.12 cwd: /home/kacper/Workspace/PlatformioCore
[gw3] linux Python 3.7.12 cwd: /home/kacper/Workspace/PlatformioCore
[gw4] linux Python 3.7.12 cwd: /home/kacper/Workspace/PlatformioCore
[gw5] linux Python 3.7.12 cwd: /home/kacper/Workspace/PlatformioCore
[gw0] Python 3.7.12 (default, Sep 10 2021, 00:20:04) -- [GCC 9.3.0]
[gw2] Python 3.7.12 (default, Sep 10 2021, 00:20:04) -- [GCC 9.3.0]
[gw3] Python 3.7.12 (default, Sep 10 2021, 00:20:04) -- [GCC 9.3.0]
[gw1] Python 3.7.12 (default, Sep 10 2021, 00:20:04) -- [GCC 9.3.0]
[gw5] Python 3.7.12 (default, Sep 10 2021, 00:20:04) -- [GCC 9.3.0]
[gw4] Python 3.7.12 (default, Sep 10 2021, 00:20:04) -- [GCC 9.3.0]
gw0 [168] / gw1 [168] / gw2 [168] / gw3 [168] / gw4 [168] / gw5 [168]
scheduling tests via LoadScopeScheduling
tests/test_maintenance.py::test_check_pio_upgrade
tests/test_builder.py::test_build_flags
tests/commands/test_account_org_team.py::test_prepare
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_prepare
tests/test_ino2cpp.py::test_example[/home/kacper/Workspace/PlatformioCore/tests/ino2cpp/basic]
tests/commands/test_account_org_team.py::test_account_register
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_account_register
tests/commands/test_account_org_team.py::test_account_login
tests/test_projectconf.py::test_empty_config
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_account_login
[gw5] PASSED tests/test_projectconf.py::test_empty_config
tests/commands/test_account_org_team.py::test_account_summary
tests/test_misc.py::test_platformio_cli
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_account_summary
tests/commands/test_account_org_team.py::test_account_token
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_account_token
tests/commands/test_account_org_team.py::test_account_change_password
tests/test_projectconf.py::test_warnings
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_account_change_password
tests/commands/test_account_org_team.py::test_account_update
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_account_update
tests/commands/test_account_org_team.py::test_org_create
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_org_create
tests/commands/test_account_org_team.py::test_org_list
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_org_list
tests/commands/test_account_org_team.py::test_org_add_owner
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_org_add_owner
tests/commands/test_account_org_team.py::test_org_remove_owner
[gw5] PASSED tests/test_projectconf.py::test_warnings
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_org_remove_owner
tests/commands/test_account_org_team.py::test_org_update
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_org_update
tests/test_projectconf.py::test_defaults
tests/commands/test_account_org_team.py::test_team_create
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_team_create
[gw5] PASSED tests/test_projectconf.py::test_defaults
tests/commands/test_account_org_team.py::test_team_list
tests/test_projectconf.py::test_sections
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_team_list
[gw5] PASSED tests/test_projectconf.py::test_sections
tests/commands/test_account_org_team.py::test_team_add_member
tests/test_projectconf.py::test_envs
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_team_add_member
tests/commands/test_account_org_team.py::test_team_remove
[gw5] PASSED tests/test_projectconf.py::test_envs
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_team_remove
tests/test_projectconf.py::test_options
tests/commands/test_account_org_team.py::test_team_update
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_team_update
tests/commands/test_account_org_team.py::test_cleanup
[gw4] SKIPPED tests/commands/test_account_org_team.py::test_cleanup
tests/commands/test_boards.py::test_board_json_output
[gw5] PASSED tests/test_projectconf.py::test_options
tests/test_projectconf.py::test_has_option
[gw5] PASSED tests/test_projectconf.py::test_has_option
tests/test_projectconf.py::test_sysenv_options
[gw5] PASSED tests/test_projectconf.py::test_sysenv_options
tests/test_projectconf.py::test_getraw_value
[gw5] PASSED tests/test_projectconf.py::test_getraw_value
tests/test_projectconf.py::test_get_value
[gw5] PASSED tests/test_projectconf.py::test_get_value
tests/test_projectconf.py::test_items
[gw5] PASSED tests/test_projectconf.py::test_items
tests/test_projectconf.py::test_update_and_save
[gw5] PASSED tests/test_projectconf.py::test_update_and_save
tests/test_projectconf.py::test_update_and_clear
[gw5] PASSED tests/test_projectconf.py::test_update_and_clear
tests/test_projectconf.py::test_dump
[gw5] PASSED tests/test_projectconf.py::test_dump
tests/commands/test_check.py::test_check_cli_output
[gw1] PASSED tests/test_misc.py::test_platformio_cli
tests/test_misc.py::test_ping_internet_ips
[gw3] PASSED tests/test_maintenance.py::test_check_pio_upgrade
tests/test_maintenance.py::test_check_lib_updates
[gw5] PASSED tests/commands/test_check.py::test_check_cli_output
[gw0] PASSED tests/test_builder.py::test_build_flags
tests/test_builder.py::test_build_unflags
tests/commands/test_check.py::test_check_json_output
[gw1] PASSED tests/test_misc.py::test_ping_internet_ips
tests/test_misc.py::test_api_internet_offline
[gw1] PASSED tests/test_misc.py::test_api_internet_offline
tests/test_misc.py::test_api_cache
[gw5] PASSED tests/commands/test_check.py::test_check_json_output
tests/commands/test_check.py::test_check_tool_defines_passed
[gw0] PASSED tests/test_builder.py::test_build_unflags
tests/test_builder.py::test_debug_default_build_flags
[gw5] PASSED tests/commands/test_check.py::test_check_tool_defines_passed
tests/commands/test_check.py::test_check_language_standard_definition_passed
[gw0] PASSED tests/test_builder.py::test_debug_default_build_flags
tests/test_builder.py::test_debug_custom_build_flags
[gw1] PASSED tests/test_misc.py::test_api_cache
tests/commands/test_ci.py::test_ci_empty
[gw1] PASSED tests/commands/test_ci.py::test_ci_empty
tests/commands/test_ci.py::test_ci_boards
[gw4] PASSED tests/commands/test_boards.py::test_board_json_output
tests/commands/test_boards.py::test_board_raw_output
[gw1] FAILED tests/commands/test_ci.py::test_ci_boards
========================================================================================== FAILURES ===========================================================================================
_______________________________________________________________________________________ test_ci_boards ________________________________________________________________________________________
[gw1] linux -- Python 3.7.12 /home/kacper/Workspace/PlatformioCore/.tox/py37/bin/python
clirunner = <click.testing.CliRunner object at 0x7fcad6b75790>, validate_cliresult = <function validate_cliresult.<locals>.decorator at 0x7fcad6bd8d40>
def test_ci_boards(clirunner, validate_cliresult):
result = clirunner.invoke(
cmd_ci,
[
join("examples", "wiring-blink", "src", "main.cpp"),
"-b",
"uno",
"-b",
"leonardo",
],
)
> validate_cliresult(result)
tests/commands/test_ci.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
result = <Result SystemExit(2)>
def decorator(result):
> assert result.exit_code == 0, "{} => {}".format(result.exception, result.output)
E AssertionError: 2 => Usage: ci [OPTIONS] [SRC]...
E Try 'ci --help' for help.
E
E Error: Invalid value for '[SRC]...': Found invalid path: examples/wiring-blink/src/main.cpp
E
E assert 2 == 0
E +2
E -0
tests/conftest.py:33: AssertionError
====================================================================================== warnings summary =======================================================================================
platformio/__main__.py:70
platformio/__main__.py:70
platformio/__main__.py:70
platformio/__main__.py:70
platformio/__main__.py:70
platformio/__main__.py:70
/home/kacper/Workspace/PlatformioCore/platformio/__main__.py:70: DeprecationWarning: 'resultcallback' has been renamed to 'result_callback'. The old name will be removed in Click 8.1.
@cli.resultcallback()
.tox/py37/lib/python3.7/site-packages/marshmallow/fields.py:176
.tox/py37/lib/python3.7/site-packages/marshmallow/fields.py:176
.tox/py37/lib/python3.7/site-packages/marshmallow/fields.py:176
.tox/py37/lib/python3.7/site-packages/marshmallow/fields.py:176
.tox/py37/lib/python3.7/site-packages/marshmallow/fields.py:176
.tox/py37/lib/python3.7/site-packages/marshmallow/fields.py:176
/home/kacper/Workspace/PlatformioCore/.tox/py37/lib/python3.7/site-packages/marshmallow/fields.py:176: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead.
RemovedInMarshmallow4Warning,
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=================================================================================== short test summary info ===================================================================================
FAILED tests/commands/test_ci.py::test_ci_boards - AssertionError: 2 => Usage: ci [OPTIONS] [SRC]...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================== 1 failed, 27 passed, 18 skipped, 12 warnings in 12.41s ====================================================================
make: *** [Makefile:14: test] Error 2