gluon/tests/test_batman-adv.py
Martin Weinelt 934287c1e9
WIP: add QEMU test driver based on virtio-serial
Migrates the test cases to pytest.
2020-11-13 03:51:21 +01:00

23 lines
363 B
Python

#!/usr/bin/env python3
import sys
from driver import Node, Network, start_all
import asyncio
import time
def test_tpmeter():
a = Node()
b = Node()
a.connect(b)
start_all()
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)