diff options
author | Stefan Kobza <skobza@cisco.com> | 2016-02-13 00:25:23 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-02-15 12:43:25 +0000 |
commit | 84c45de446b69f83df919a91bc684da910824d6f (patch) | |
tree | 2f85c7f81bfed4e15938f00e059e54fcda4030f8 /resources/traffic_scripts/send_ip_icmp.py | |
parent | c662f5045a4812540fcc11006ae865351090035b (diff) |
Remove multiprocessing from PacketVerifier, tune tests.
Change-Id: I37b171c50bad97255a42d6f9426f749055357380
Signed-off-by: Stefan Kobza <skobza@cisco.com>
Diffstat (limited to 'resources/traffic_scripts/send_ip_icmp.py')
-rwxr-xr-x | resources/traffic_scripts/send_ip_icmp.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/resources/traffic_scripts/send_ip_icmp.py b/resources/traffic_scripts/send_ip_icmp.py index fd15376fb1..5e365ebc38 100755 --- a/resources/traffic_scripts/send_ip_icmp.py +++ b/resources/traffic_scripts/send_ip_icmp.py @@ -47,24 +47,20 @@ def main(): sent_packets.append(pkt_raw) txq.send(pkt_raw) - ether = rxq.recv(1) + ether = rxq.recv(10) # Check whether received packet contains layers Ether, IP and ICMP if ether is None: - rxq._proc.terminate() raise RuntimeError('ICMPv6 echo reply Rx timeout') if not ether.haslayer(IP): - rxq._proc.terminate() raise RuntimeError( 'Not an IP packet received {0}'.format(ether.__repr__())) if not ether.haslayer(ICMP): - rxq._proc.terminate() raise RuntimeError( 'Not an ICMP packet received {0}'.format(ether.__repr__())) - rxq._proc.terminate() sys.exit(0) if __name__ == "__main__": |