Skip to content

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

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
mguetschow:tests-pn532
Jun 14, 2024
Merged

tests/drivers/pn532: fix init error handling and increase verbosity#20750
benpicco merged 1 commit intoRIOT-OS:masterfrom
mguetschow:tests-pn532

Conversation

@mguetschow
Copy link
Copy Markdown
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
Copy Markdown

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
@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