-
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
unexport TERM* variables #11064
unexport TERM* variables #11064
Conversation
TERMPROG and TERMFLAGS variables do not need to be exported as they are used directly by a make receipe. Exporting them prevents overwriting 'RIOT_TERMINAL' in the test.
TERMPROG and TERMFLAGS variables do not need to be exported as they are used directly by a make receipe. Exporting them prevents overwriting 'RIOT_TERMINAL' in the test.
TERMPROG and TERMFLAGS variables do not need to be exported as they are used directly by a make receipe.
Please tell me if you see other testing procedure I missed. |
@aabadie, you added the boards/nz32-sc151, but it looks kind of broken in the way it sets TERMFLAGS (it won't work if one changes RIOT_TERMINAL). |
I am doing a pull request for the |
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.
Tested make term in samr21. It still works. Also, the exports were clearly unnecessary.
Thank you for the review. |
Contribution description
TERMPROG and TERMFLAGS variables do not need to be exported as they are
used directly by a make receipe.
Exporting them prevents overwriting 'RIOT_TERMINAL' in the test.
Other uses to unexport:
There is one remaining usage of
export TERMFLAGS
but it should be handled alone as it does not make sense as it does not handleRIOT_TERMINAL
. I will add it to the tracking issue.Testing procedure
Review
We can see that there are not usages in other places than recipes that are declared in
Makefile.include
:There are no more exports of
TERMFLAGS
orTERMPROG
except the one already mentioned earlier:Testing
make term
It is still working for both native and boards. You can try
The
term-gprof
for native is not working both in master and with this PR.Overwriting
RIOT_TERMINAL
in testrunner:The usage within
make test
can be checked with this diff.With it, running a test on a board should use
socat
Issues/PRs references
Tracking issue #10850
Was an effective issue while working on #10952