From c2e6aad09f893e4c8cb5cb9243c32a0d6d0d1e12 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 9 Jun 2022 21:48:32 +0200 Subject: Init ESDS repository --- tests/simple_sendt_eth0_1s1r/sender.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/simple_sendt_eth0_1s1r/sender.py (limited to 'tests/simple_sendt_eth0_1s1r/sender.py') diff --git a/tests/simple_sendt_eth0_1s1r/sender.py b/tests/simple_sendt_eth0_1s1r/sender.py new file mode 100644 index 0000000..ee2ea9d --- /dev/null +++ b/tests/simple_sendt_eth0_1s1r/sender.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +def sendt(node,timeout): + code=node.sendt("eth0","Hello World!",1,1,timeout) + msg="Send worked!" if code == 0 else "Send failed" + node.log(msg) + +def execute(api): + # Should work + sendt(api,2) + # Should not work + sendt(api,0.5) + # Should work + sendt(api,2) -- cgit v1.2.3