tests: add batctl tpmeter test case

This commit is contained in:
lemoer 2020-04-29 14:13:49 +02:00 committed by Martin Weinelt
parent 03f718a071
commit b11f18f5df

View File

@ -0,0 +1,22 @@
#!/usr/bin/env python3
import sys
from pynet import *
import asyncio
import time
a = Node()
b = Node()
connect(a, b)
start()
b.wait_until_succeeds("ping -c 5 node1")
addr = a.succeed('cat /sys/class/net/primary0/address')
result = b.succeed(f'batctl tp {addr}')
print(result)
finish()