summaryrefslogtreecommitdiff
path: root/tests/simple_receivet0_eth0_1s1r/receiver.py
blob: bbb7ff74a410e50414a418535174951ee0b9307d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

def receivet(node,timeout):
    ##### Simple receive
    code, data=node.receivet("eth0",timeout)
    msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
    node.log(msg)

def execute(api):
    # Should not works
    receivet(api,0)
    api.wait(1)
    # Should works
    receivet(api,0)