Skip to content

Commit

Permalink
tests: add batctl tpmeter test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoer authored and mweinelt committed Apr 29, 2020
1 parent 03f718a commit b11f18f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/test_batctl_tpmeter.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit b11f18f

Please sign in to comment.