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

Initial import of MultiRIOTCtrl #13

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

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Jan 26, 2021

This allows to access multiple RIOTCtrl objects in a mapping-like manner:

>>> ctrl = MultiRIOTCtrl({'a': riotctrl.ctrl.RIOTCtrl(env={'BOARD': 'A'}),
...                       'b': riotctrl.ctrl.RIOTCtrl(env={'BOARD': 'B'})})
>>> ctrl.board()
{'a': 'A', 'b': 'B'}
>>> ctrl['a','b'].board()
{'a': 'A', 'b': 'B'}
>>> ctrl['a'].board()
'A'

The current base classes just iterate over the provided RIOTCtrls but the actual use case I am planning to use this for is to provide wrappers for

  • nodes with the same application to only compile the application once, and
  • iotlabcli + serial_aggregator.

@miri64
Copy link
Member Author

miri64 commented Mar 9, 2021

@aabadie @fjmolinas @leandrolanzieri any opinion on this?

@fjmolinas
Copy link
Contributor

@aabadie @fjmolinas @leandrolanzieri any opinion on this?

Is this something that would allow easy integration into your iotlab_controller?

@miri64
Copy link
Member Author

miri64 commented Sep 10, 2021

Is this something that would allow easy integration into your iotlab_controller?

There are still some more ways to go for "easy" integration (such as serial_aggregator/tmux) support of ShellInteraction (or an extension / sibling of that), but in general, yes: this would simplify integration into iotlab_controller :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants