Giter Site home page Giter Site logo

Comments (6)

mbanders avatar mbanders commented on August 13, 2024

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.

mattsm avatar mattsm commented on August 13, 2024

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.

mattsm avatar mattsm commented on August 13, 2024

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.

mbanders avatar mbanders commented on August 13, 2024

@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:

  1. the machine running bft runs a test, and within that test, copies a python file on the wan device.
  2. The test then connects and
  3. starts the code in that python file

Does that sound about right?

from boardfarm.

mattsm avatar mattsm commented on August 13, 2024

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.

mattsm avatar mattsm commented on August 13, 2024

After research @mbanders says there is no great solution... pyro4 requires copying files over.

from boardfarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.