-
Notifications
You must be signed in to change notification settings - Fork 2k
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
murdock: fail on broken application Makefile #7742
Conversation
Fixes #7741. |
Failed correctly: https://ci.riot-os.org/RIOT-OS/RIOT/7742/b87283bf07164cdbf7ab2788e4af6e6d462f0058/output.html I'll remove the test commit. |
b87283b
to
a59ab07
Compare
local boards="$(make --no-print-directory -C$appdir info-boards-supported 2>/dev/null || echo broken)" | ||
|
||
if [ "$boards" = broken ]; then | ||
echo "makefile_broken" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't you put out the actual error message? E.g. by piping it to a temporary file or file descriptor instead of /dev/null
above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see that the output should go below, but regardless I think it is helpful to print the actual error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaspar030 and I discussed the proposed change offline and my change request does not seem to be that trivial. So let's merge it for now as is and review this at a later time.
@kaspar030 please provide a backport to the 2017.10 branch.
As discussed offline with the release manager, no backport needed. |
A broken application Makefile would error when doing
make -Capp_dir info-boards-supported
, but due to the way Murdock called make, that error would just result in empty output.This PR adds the necessary handling.
(includes a test commit to see if this actually works)