tests: add batctl tpmeter test case
This commit is contained in:
parent
03f718a071
commit
b11f18f5df
22
tests/test_batctl_tpmeter.py
Normal file
22
tests/test_batctl_tpmeter.py
Normal 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()
|
||||
|
Loading…
Reference in New Issue
Block a user