Add a check to make sure pcap file is getting created
Closes-Bug: #1738935
Intf Mirroring cases failing in the sanity, but passed on rerun.
Possible cause for the intermittent failure in the sanity could be
the pcap file is getting deleted after starting tcpdump.
In the start_tcpdump method, we first delete already existing file before creating a new one.
To make sure that the pcap file is present after starting tcpdump we need to
make sure that the pcap file is actually deleted if already exists before starting tcpdump.
This commit might solve the intermittent issue in the sanity.
Reviewed: https:/ /review. opencontrail. org/38738 github. com/Juniper/ contrail- test-ci/ commit/ 0b6683218b1c4ca ce182d704c426c6 05d609c4e4
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: master
commit 0b6683218b1c4ca ce182d704c426c6 05d609c4e4
Author: ankitja <email address hidden>
Date: Fri Dec 29 15:40:40 2017 +0530
Add a check to make sure pcap file is getting created
Closes-Bug: #1738935
Intf Mirroring cases failing in the sanity, but passed on rerun.
Possible cause for the intermittent failure in the sanity could be
the pcap file is getting deleted after starting tcpdump.
In the start_tcpdump method, we first delete already existing file before creating a new one.
To make sure that the pcap file is present after starting tcpdump we need to
make sure that the pcap file is actually deleted if already exists before starting tcpdump.
This commit might solve the intermittent issue in the sanity.
Change-Id: I2297433f25dbe1 f8bae8c01e4601b aaaee1290b9