Source code for labgrid.protocol.commandprotocol

import abc


[docs]class CommandProtocol(abc.ABC): """Abstract class for the CommandProtocol"""
[docs] @abc.abstractmethod def run(self, command: str): """ Run a command """ raise NotImplementedError
[docs] @abc.abstractmethod def run_check(self, command: str): """ Run a command, return str if succesful, ExecutionError otherwise """ raise NotImplementedError
[docs] @abc.abstractmethod def get_status(self): """ Get status of the Driver """ raise NotImplementedError
[docs] @abc.abstractmethod def wait_for(self): """ Wait for a shell command to return with the specified output """ raise NotImplementedError
[docs] @abc.abstractmethod def poll_until_success(self): """ Repeatedly call a shell command until it succeeds """ raise NotImplementedError