tools/compile_and_test_for_board: fix lint [backport 2021.01]#16123
Merged
aabadie merged 1 commit intoRIOT-OS:2021.01-branchfrom Mar 2, 2021
Conversation
Pylint raises an error because of inconsistent return statements in the make_with_outfile function. The return value of this function is never used, so a bare return or no return is ok (cherry picked from commit dd88ead)
miri64
approved these changes
Mar 2, 2021
Member
miri64
left a comment
There was a problem hiding this comment.
ACK. This is caused by an external change and the change is the same as on master.
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.
Backport of #16058
It seems this needs to be backported, in order to continue backporting other PRs to the latest release (see #16120 (comment)).
Contribution description
A new version of Pylint was released today and this breaks the tools-test github action because of a small inconsistency in the compile_and_test_for_board script.
The raised issue is perfectly valid and this PR is fixing it by cleaning up a bit the
make_with_outfilefunction. The return value of this function is never used so a bare return or no return is ok.RIOT/dist/tools/compile_and_test_for_board/compile_and_test_for_board.py
Line 410 in e0211f4
RIOT/dist/tools/compile_and_test_for_board/compile_and_test_for_board.py
Lines 418 to 419 in e0211f4
Testing procedure
compile_and_test_for_board.py works as expected:
Details
Issues/PRs references
The CI is failing on several PRs because of this problem.