neutron/neutron/tests/common/agents
Slawek Kaplonski 570f6086c0 Fix fullstack test_dscp_marking_packets test
Fullstack test test_dscp_marking_packets spawns tcpdump
process inside one fake vm's namespace and then tries to
ping this instance from second one.
After that it checks if tcdump captured any packet marked with
specific DSCP mark.

Ping was done usually only once (1 packet) because
it was done by using vm.wait_until_ping() method, so it could
happen sometimes that ping was send before tcpdump actually
started captuting traffic.
In such case test failed because there was no any packet captured.

This patch changes this by:
1. Start tcpdump async process with block=True, so it should be
   already really started before test will go to the next steps,
2. Send always 10 packets instead of (usually) only one.

In addition this patch adds logging of captured tcpdump's stdout
and stderr streams. It may help debugging issues with this test in
the future.

Change-Id: I23bbde59af0250267843623dde2c5407059d9db2
Closes-Bug: #1818335
(cherry picked from commit 8c2a16796b)
2019-03-19 12:44:23 +00:00
..
__init__.py Append @randtoken to L3 agent namespaces in full stack tests 2015-05-12 20:32:54 +00:00
l2_extensions.py Fix fullstack test_dscp_marking_packets test 2019-03-19 12:44:23 +00:00
l3_agent.py Remove translation of help messages from tests 2017-09-25 09:49:38 +00:00
ovs_agent.py Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00