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

tests/drivers/pn532: fix init error handling and increase verbosity #20750

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

mguetschow
Copy link
Contributor

Contribution description

pn532_init() contains no logic to actually test the proper connection to the device, and the driver test ignores initialization failures and does not show comprehensive errors. This PR changes the test to abort on errors during initialization or fw-version retrieval.

Testing procedure

Look through the code changes. This does not impact the test execution in case of no errors.

@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Jun 13, 2024
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 14, 2024
@benpicco benpicco enabled auto-merge June 14, 2024 09:23
@riot-ci
Copy link

riot-ci commented Jun 14, 2024

Murdock results

✔️ PASSED

81494ba tests/drivers/pn532: fix init error handling and increase verbosity

Success Failures Total Runtime
14 0 14 01m:30s

Artifacts

@benpicco benpicco added this pull request to the merge queue Jun 14, 2024
Merged via the queue into RIOT-OS:master with commit 5096c24 Jun 14, 2024
27 checks passed
@mguetschow mguetschow deleted the tests-pn532 branch June 14, 2024 14:30
@mguetschow mguetschow added this to the Release 2024.07 milestone Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants