tools/testrunner: add variable for customizing a delay before reset#13070
Merged
fjmolinas merged 2 commits intoRIOT-OS:masterfrom Jan 10, 2020
Merged
tools/testrunner: add variable for customizing a delay before reset#13070fjmolinas merged 2 commits intoRIOT-OS:masterfrom
fjmolinas merged 2 commits intoRIOT-OS:masterfrom
Conversation
On some boards, such as hifive1b, resetting right after flashing could crash the running firmware
Contributor
|
@aabadie don't have access to a board to test ATM, can you copy output of a failed case? and sucesfful? |
Contributor
|
Code is good otherwise. |
Contributor
Author
|
output of failed (master) and successful (this PR) test: masterthis PR |
fjmolinas
approved these changes
Jan 10, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR adds a new variable in the testrunner that allows for setting a custom delay before resetting a board under test.
The default value is set to 0, e.g. no delay but for the hifive1b it's set to 1s. On this board, when calling reset too early after flashing, the firmware crashes (with the red led blinking).
The variable is only set with the
testtarget.Testing procedure
on master, the test fails and the firmware is in a broken state (red led blinking), with this PR, the test runs normally (and succeeds).
Issues/PRs references
Found while testing #12934