tests: Fix race in "ofproto-dpif - ofproto-dpif-monitor 1" test.
authorBen Pfaff <blp@ovn.org>
Thu, 28 Jan 2016 21:25:50 +0000 (13:25 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 28 Jan 2016 21:52:18 +0000 (13:52 -0800)
commite353c8d150cb0074794370f91e895ecb99c01587
treed8218176d93d42f3291ac30fbc7cefcbd8f713ae
parent2be3fe44bac9f3f9a9d2d3223c57c6e4e38d6ab4
tests: Fix race in "ofproto-dpif - ofproto-dpif-monitor 1" test.

This test contained two commands that both read and overwrote
ovs-vswitchd.log, and then expected the running ovs-vswitchd to carry on
appending to it.   Depending on the shell implementation and the speed of
execution, and the libc implementation, this might not have the desired
effect.  This commit replaces this by a multi-step process that avoids
in-place replacement.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
tests/ofproto-dpif.at