Skip to content

Conversation

UncleGrumpy
Copy link
Collaborator

@UncleGrumpy UncleGrumpy commented Aug 20, 2025

Adds tests for uf2create and pico_flash providers. Tests use a mock picotool.sh to simulate using picotool to reset a device into usb mode and create a mountpoint.

Fixes a typo/bug that was used in the uf2create provider and documentation that would cause a family_id of rp2350 to raise an error.

Closes #53

Fixes incorrect (`rp2035`) chip name, which could lead to confusion and errors when the correct
name `rp2350` was uses for the uf2create task.

Signed-off-by: Winford <winford@object.stream>
Make the logging of the uf2create provider more verbose when running under tests so output can be
parsed and verified with expected results.

Signed-off-by: Winford <winford@object.stream>
Adds a suite of tests for the uf2create provider.

Signed-off-by: Winford <winford@object.stream>
Add some more verbose logging (when in test mode) to give test the ability to parse parameters sent
to picotool. Reduces times waiting for mount points, since we are not waiting for real hardware to
settle. Allows the use of a mock esptool for testing under CI or when no RP2 hardware is present.

Signed-off-by: Winford <winford@object.stream>
Adds a suite of test for the pico_flash provider using a mock esptool.sh to simulte devices needing
reset and creating a mountpoint.

Signed-off-by: Winford <winford@object.stream>
@UncleGrumpy UncleGrumpy requested a review from pguyot October 21, 2025 14:16
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.

Missing tests for pico_flash and uf2create providers

1 participant