Permalink
Switch branches/tags
Nothing to show
Commits on Nov 12, 2018
  1. Merge pull request #351 from jluebbe/managed-ssh

    Emantor committed Nov 12, 2018
    fix managed SSH connections
  2. Merge branch 'master' into managed-ssh

    Emantor committed Nov 12, 2018
Commits on Nov 7, 2018
  1. man/labgrid-device-config: document python module import

    Emantor committed Nov 6, 2018
    Fixes #344
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Commits on Oct 19, 2018
  1. exporter: fix proxy arguments for non exported classes

    Emantor committed Oct 19, 2018
    Classes which are not a subclass of the ResourceExport don't have these keyword
    arguments, remove them.
    
    This caused an error for restarted exporters.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  2. driver/serialdriver: remove wrong keyword argument

    Emantor committed Oct 18, 2018
    This got refactored and is also not necessary here, since we rely on the proxy
    setting of the exporter.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Commits on Oct 18, 2018
  1. doc/development: fix rendering issues and correct link

    Emantor committed Oct 18, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  2. CHANGES: update with new features

    Emantor authored and jluebbe committed Sep 10, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  3. pytestplugin/fixtures: close all ssh connections after the test ends

    Emantor authored and jluebbe committed Sep 10, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  4. doc/getting_started: add note about tmp files created by ManagedFile

    Emantor authored and jluebbe committed Sep 10, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  5. multiple: use ManagedFile for file uploads

    Emantor authored and jluebbe committed Aug 12, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  6. doc/development: document ManagedFile and ProxyManager

    Emantor authored and jluebbe committed Aug 10, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  7. util: add ManagedFile

    Emantor authored and jluebbe committed Sep 3, 2018
    A ManagedFile is initialized with a local file and provides a method to copy the
    local file to a given resource. The resources host argument is used as the
    location.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
    [r.czerwinski@pengutronix.de: apply incremental hashing from j.luebbe@pengutronix.de]
    Signed-off-by: Jan Lübbe <j.luebbe@pengutronix.de>
  8. util/helper: add get_user helper

    Emantor authored and jluebbe committed Oct 1, 2018
    Add a simple function to retrieve the curret username. This is a more
    lightweight version for the getpass.getuser() function.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  9. client: add port forwarding for serial console

    Emantor authored and jluebbe committed Jul 23, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  10. util/proxy: add proxymanager for serial port forwardings

    Emantor authored and jluebbe committed Jul 23, 2018
    The proxymanager should be used in drivers to request a forward over SSH.
    If no proxying is requested, a direct connection is used as previously.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  11. remote/exporter: add proxy fields to exported resources extra dict

    Emantor authored and jluebbe committed Oct 8, 2018
    Export the proxy and proxy_required attributes in the ResourceExport class.
    We modify the exported parameters after the call from the subclass.
    Saving the attributes in the exporter class ensures that we won't export
    parameters without the proxy attributes.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  12. remote/exporter: add isolated switch for SSH forwards

    Emantor authored and jluebbe committed Jul 9, 2018
    The isolated command line switch tells the exporter to always request a SSH
    forward connection through itself.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  13. doc/development: document sshmanager

    Emantor authored and jluebbe committed Apr 25, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  14. util/ssh: add SSHConnection, SSHConnectionManager and sshmanager

    Emantor authored and jluebbe committed Mar 11, 2018
    The new sshmanager allows us to manage SSHConnections to remote hosts for the
    distributed infrastructure. It supports port forwards and file uploads, making
    only a ssh connection to the remote host necessary.
    
    The sshmanager is exported for use by other modules.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
    [r.czerwinski@pengutronix.de: apply fixups from j.luebbe@pengutronix.de]
    Signed-off-by: Jan Lübbe <j.luebbe@pengutronix.de>
  15. travis: add ssh key for localhost

    Emantor authored and jluebbe committed Apr 25, 2018
    Also install packages by using the travis apt addon syntax.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  16. multiple: move get_free_ports to labgrid.util

    Emantor authored and jluebbe committed Apr 4, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Commits on Oct 16, 2018
  1. serialdriver: fix warning string

    Emantor authored and jluebbe committed Oct 5, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  2. resource/udev: fix DeprecationWarnings

    Emantor authored and jluebbe committed Oct 8, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  3. setup: remove graphviz from install_required

    Emantor authored and jluebbe committed Oct 8, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  4. setup: restrict to python 3.5 and python 3.6

    Emantor authored and jluebbe committed Oct 8, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Commits on Sep 24, 2018
  1. usage: document feature flags

    Emantor committed Aug 27, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  2. pytestplugin/hooks: add pytest_collection_modifyitems

    Emantor committed Sep 24, 2018
    The hook is used to filter the items during the collection stage, removing the
    ones which do not match the available features
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  3. pytestplugin: move pytest hooks into hook.py

    Emantor committed Aug 27, 2018
    Move the pytest configure hook into a generic hook file to seperate it from the
    reporter implementation.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  4. pytestplugin: move env creation into pytest_configure call

    Emantor committed Aug 27, 2018
    To filter the tests in the pytest collect stage, we need to parse the
    environment file and create the environment earlier in pytest.
    Before it was created when the first test called the fixture.
    We now always create the environment in the pytest configure stage and pass the
    created environment to the fixture.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  5. environment: add get_features and get_target_features

    Emantor committed Aug 20, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  6. config: add get_features

    Emantor committed Aug 20, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Commits on Sep 20, 2018
  1. resource/udev: use update function for USBSDMuxDevice

    Emantor authored and jluebbe committed Jul 30, 2018
    Previously the USBSDMuxDevice set up its own polling solution to find the disk
    and control path. Update them after the udev device is added or removed instead
    of polling constantly.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Commits on Sep 18, 2018
  1. serialdriver: fix version detection for RFC2217

    Emantor committed Sep 18, 2018
    Our versioned release is 3.4.0.1, so we should only warn if the pyserial version
    is lower than this , not equal and lower.
    
    Fixes: 9d26bb2 ("serialdriver: add a warning about the RFC2217 fixes")
    Reported-by: Jonathan Götzinger <J.Goetzinger@eckelmann.de>
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Commits on Sep 17, 2018
  1. doc/configuration: document new SmallUBootDriver login_timeout

    Emantor authored and jluebbe committed Sep 16, 2018
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  2. smallubootdriver: add login_timeout

    Emantor authored and jluebbe committed Sep 16, 2018
    Allow to set the login timeout as in every other bootloader driver.
    
    Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>