1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

riotctrl_shell.netif: add missing check_term decorator

This commit is contained in:
Martine S. Lenders 2020-07-08 12:04:31 +02:00
parent 4c0e8e554b
commit b110f9e38c
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -279,6 +279,7 @@ class Ifconfig(ShellInteraction):
def ifconfig_list(self, netif=None, timeout=-1, async_=False):
return self.ifconfig_cmd(netif=netif, timeout=timeout, async_=async_)
@ShellInteraction.check_term
def ifconfig_cmd(self, netif=None, args=None, timeout=-1, async_=False):
cmd = "ifconfig"
if netif is not None:
@ -370,6 +371,7 @@ class Ifconfig(ShellInteraction):
class TXTSnd(ShellInteraction):
@ShellInteraction.check_term
def netif_txtsnd(self, netif, target, data, timeout=-1, async_=False):
cmd = "txtsnd {netif} {target} {data}".format(
netif=netif,