1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Give time to allow node to set its ll address

Set a delay of three seconds at the beginning of the test. Otherwise,
the node will send a neighbour solicitation with a blank link local
address, it won't receive a reply, and the test will fail.
This commit is contained in:
danpetry 2019-04-10 16:43:27 +02:00
parent 102b0ed151
commit b320dd7909

View File

@ -13,6 +13,7 @@ import socket
import sys import sys
import subprocess import subprocess
import threading import threading
import time
from scapy.all import DNS, DNSQR, DNSRR, Raw, raw from scapy.all import DNS, DNSQR, DNSRR, Raw, raw
from testrunner import run from testrunner import run
@ -274,6 +275,7 @@ def testfunc(child):
tap = get_bridge(os.environ["TAP"]) tap = get_bridge(os.environ["TAP"])
lladdr = get_host_lladdr(tap) lladdr = get_host_lladdr(tap)
time.sleep(3)
try: try:
server = Server(family=socket.AF_INET6, type=socket.SOCK_DGRAM, server = Server(family=socket.AF_INET6, type=socket.SOCK_DGRAM,
bind_addr=lladdr + "%" + tap, bind_port=SERVER_PORT) bind_addr=lladdr + "%" + tap, bind_port=SERVER_PORT)