Comments (6)
Is the idea you would still connect to the WAN device normally with pexpect? You'd just have a test that also used Pyro (or similar) to run python on the WAN device?
from boardfarm.
I think pyro would connect via some sort of network connection and not over pexpect. pexpect would still be present. Maybe the pyro session would be added to the pexpect object.
def foobar():
.... some native python to run on target device ....
wan.pyro.invoke(foobar)
from boardfarm.
Looks like it just connects via a port
https://pythonhosted.org/Pyro4/intro.html#simple-example
We can probably use ssh to forward a port so we don't need to worry about opening new ports?
-M
from boardfarm.
@mattsm looking at Pyro4 documentation, it seems like the code has to be present on the remote device (or wan device in this case). So an outline of the process seems like it would be:
- the machine running bft runs a test, and within that test, copies a python file on the wan device.
- The test then connects and
- starts the code in that python file
Does that sound about right?
from boardfarm.
I was hoping to avoid copying, I wonder if there is a way to do that... the latter parts look correct. Might search for some alternative python remoting frameworks as well.
-M
from boardfarm.
After research @mbanders says there is no great solution... pyro4 requires copying files over.
from boardfarm.
Related Issues (20)
- pyflake issues in tests/lib directory HOT 2
- Exceptions raised within tests.linux_boot.testWrapper() are silent
- On terminals with black backgrounds a message looks empty
- Run Test from interact has issues
- The "whatchanged.sh" script is picking things that aren't actually tests HOT 2
- Find testcases that use a function
- BFT option to run something during tests (like tcpdump on wan device)
- Check connectivity, routes, pings, etc between devices on failure HOT 2
- Have "whatchanged.py" select child tests as well HOT 1
- use whatchanged.py in travisci yml
- SnmpHelper.py throws an exception - maybe if BFT_OVERLAY isn't set correctly? HOT 2
- SnmpHelper.py make code more robust HOT 5
- when using multiple consoles, distingish between on on debug output
- Add option to send mails for pipeline jobs in automation/ dir
- connect multiple devices HOT 2
- Test case not failing HOT 3
- Issue with accessing the webgui through Boardfarm HOT 3
- Question regarding boardfarm qemu network setup
- ubuntu / debian version?
- Add Fedora instructions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boardfarm.