Skip to content
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/helpers: Increase timeout and deal with newlines #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ffainelli
Copy link
Contributor

TelnetControl can produce multiple newlines, make sure we filter through
those. While testing with a Broadcom BCM5301x it was also found that a
10s timeout was too short, bump it up to 20s.

TelnetControl can produce multiple newlines, make sure we filter through
those. While testing with a Broadcom BCM5301x it was also found that a
10s timeout was too short, bump it up to 20s.
@ffainelli
Copy link
Contributor Author

The line splitting should probably be moved to Telnet control. I am seeing some weird problems with ser2net that need investigating. The timeout increase is good though.

@d-k-c
Copy link
Member

d-k-c commented Jan 10, 2018

Okay. Could you split that into two commits so I can integrate the timeout change?

About newlines, you made me realize it's a bit inconsistent at the moment. For SSHControl and LocalControl, It will return a simple string if the output is a one-liner, but a list otherwise. And for TelnetControl, I think it will always return a list. That's an issue that will bite us sooner or later.

@ffainelli
Copy link
Contributor Author

Agreed, we should really solve this now so we have a consistent experience with all controls. TelnetControl still seems to suffer from some issues...

@d-k-c d-k-c force-pushed the master branch 2 times, most recently from ac6b5fe to fed2b04 Compare March 15, 2018 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants