From b11f18f5dfd7becb4f61b668938ce275e17918d1 Mon Sep 17 00:00:00 2001 From: lemoer Date: Wed, 29 Apr 2020 14:13:49 +0200 Subject: [PATCH] tests: add batctl tpmeter test case --- tests/test_batctl_tpmeter.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/test_batctl_tpmeter.py diff --git a/tests/test_batctl_tpmeter.py b/tests/test_batctl_tpmeter.py new file mode 100644 index 00000000..086626d5 --- /dev/null +++ b/tests/test_batctl_tpmeter.py @@ -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() +