-
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
tests/test_tools: set RIOT_TERMINAL to socat #15882
Conversation
For some reason pyterm sends ANSI escape sequences. The tests fails when trying to read the clean output from the node. I believe we should check why pyterm does that, but I propose this fix in the meantime
With this PR:
Without:
|
I can't reproduce the problem locally, it works like a charm on master and 2021.01-branch (tested with a samr21-xpro plugged to my computer).
What is your Python version ? I have 3.8.6 but I don't think that should make a big difference. |
This is my local setup: Toolchain
@miri64 seemed to have the same issue with her Arch Linux |
so, how to proceed? It would be nice to solve this one before announcing RC3 |
As written in the README:
(Almost) All tests are using pyterm and if we change pyterm for socat then it means that we don't test the same terminal tools that is used by those tests. I don't like the fix proposed by this PR. |
No, I tested with python 3.8 on Arch as well. It seems to be a problem when using a terminal emulator in a DE or the like. I can't reproduce the issue when using a raw terminal without GDM (in my case) started. I digged deep enough to figure out, that those ANSI chars are coming from the I agree that switching to |
Not sure what you mean with "terminal emulator in a DE", do you mean tmux ? I tested on Ubuntu from terminator and gnome-terminal and no issue. |
I mean stuff like gnome-terminal ;-) |
I tried python3.7 and connecting to my laptop via SSH. Same problem :/ It works in other Ubuntu machines though. |
Here's an issue that documents this bug: Therefore, I think we can close this one. |
Contribution description
For some reason pyterm sends ANSI escape sequences. The tests fails when
trying to read the clean output from the node.
I believe we should check why pyterm does that, but I propose this fix
in the meantime.
I tested this one on
samr21-xpro
andiotlab-m3
, but I guess all boards should be affected.Testing procedure
BOARD=samr21-xpro make -C tests/test_tools flash test
should pass.Issues/PRs references
Found while testing in RIOT-OS/Release-Specs#206