riotctrl_shell: provide netif interactions and parsers#14441
riotctrl_shell: provide netif interactions and parsers#14441aabadie merged 3 commits intoRIOT-OS:masterfrom
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. |
aabadie
left a comment
There was a problem hiding this comment.
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-QPSKMR-O-QPSKMR-OFDMMR-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: |
aabadie
left a comment
There was a problem hiding this comment.
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
riotctrlshell interaction. :-).This PR also contains some fixes to the output of
ifconfigto 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
toxshould succeed forriotctrl_shell:Issues/PRs references
Follow-up on #11406