Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored upload procedure to correctly handle bootloader.tool property #952

Merged
merged 9 commits into from
Oct 20, 2020

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Sep 17, 2020

Previously the bootloader.tool property was ignored (due to how the sequence of if was structured in the runProgramAction).
I see that on the majority of platforms this was not a problem (because bootloader.tool almost always equals to program.tool), but this needs to be fixed anyway.

I've also added a bunch of tests using a fake platform defined in commands/upload/testdata/hardware/alice/avr/ that runs the echo tool, so we can capture the upload output. The last test checks the most complex case that it's fixed by this PR.

TDB: I'd like to add also tests for "referenced platforms", the idea is to create another platform in commands/upload/testdata/hardware/bob/avr/ that refers to the first one and use it to test as many combinations of configurations as possible and see if the "properties composition" works correctly.

@cmaglie cmaglie force-pushed the upload-tests-and-refactor branch 2 times, most recently from 7701131 to 4718e44 Compare September 17, 2020 08:52
@cmaglie cmaglie merged commit 4777e1d into arduino:master Oct 20, 2020
@cmaglie cmaglie deleted the upload-tests-and-refactor branch October 20, 2020 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants