-
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
riotctrl_shell: provide netif interactions and parsers #14441
Conversation
@jia200x @benpicco: it would be great if you could provide example outputs of
I think, if possible, one example per bullet point would be enough. |
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.
There are some nits reported by the static-tests (flake8 + typos). Also some questions regarding the names of classes. Why Netif
? This seems confusing since it's a wrapper around ifconfig
, same with NetifSend
, it could just be Txtsnd
?
I think you could also use pytest.parametrize
to factorize some test functions. I'd like to see the new interactions and parser used in our real tests :)
Mostly because the module is called like this. My idea was to name the classes like the module. I could name the methods like the shell command if you prefer (which I mostly already have done for |
ceb33a7
to
1664f12
Compare
Okay, I decided to rename |
LoRa output was provided by @leandrolanzieri offline. |
(legacy) O-QPSK
MR-O-QPSK
MR-OFDM
MR-FSK
|
@benpicco Thanks! |
Added @benpicco's examples, moved examples to their own test suite, applied fixes according to new tests |
d489f17
to
fb2c101
Compare
Rebased to current master to include GitHub actions for tool testing:
|
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.
Looks good, please squash !
ACK
Originally, the options and flags in the `netif` shell output were separated by two spaces. For later added flags this is not the case, making the parsing of those flags and options hard to impossible. This change adds those missing spaces + comments so it might not happen again in the future.
Squashed |
b947bab
to
f8d23b4
Compare
None of the failing tests check the
|
Thanks for the review @aabadie! |
Contribution description
Probably our hardest shell command to parse and execute, now as a
riotctrl
shell interaction. :-).This PR also contains some fixes to the output of
ifconfig
to make it easier to parse. I can move them to a separate PR, if preferred, the options changed don't seem to have been checked in any tests however.Testing procedure
tox
should succeed forriotctrl_shell
:Issues/PRs references
Follow-up on #11406