]> git.proxmox.com Git - ovs.git/commitdiff
tests: Fixed access denied on ovs-vswitchd.log
authorPaul Boca <pboca@cloudbasesolutions.com>
Fri, 3 Jun 2016 13:05:54 +0000 (13:05 +0000)
committerBen Pfaff <blp@ovn.org>
Tue, 7 Jun 2016 04:21:45 +0000 (21:21 -0700)
On Windows trying to overwrite the opened ovs-vswitchd.log
fails with access denied. Closing it before trying to overwrite it
solves the problem

Signed-off-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
AUTHORS
tests/ofproto-dpif.at

diff --git a/AUTHORS b/AUTHORS
index 3f8bdc64d27a126c8072f0b20b09dc786a3ab593..9fda4c14409266c0d5cd296e134435a111df1ace 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -168,6 +168,7 @@ Ofer Ben-Yacov          ofer.benyacov@gmail.com
 Padmanabhan Krishnan    kprad1@yahoo.com
 Panu Matilainen         pmatilai@redhat.com
 Paraneetharan Chandrasekaran    paraneetharanc@gmail.com
+Paul Boca               pboca@cloudbasesolutions.com
 Paul Fazzone            pfazzone@nicira.com
 Paul Ingram             paul@nicira.com
 Paul-Emmanuel Raoul     skyper@skyplabs.net
index 8d84f60621cf9ae967d19b03ef6c1ec0498f6a96..d0aacfa4f06eb5cd2469dca5bf83f0d7b330c4e3 100644 (file)
@@ -6923,7 +6923,7 @@ OVS_WAIT_UNTIL([grep "monitor thread created" ovs-vswitchd.log])
 AT_CHECK([ovs-vsctl set interface p0 bfd:enable=false])
 # check log.
 OVS_WAIT_UNTIL([grep "monitor thread terminated" ovs-vswitchd.log])
-AT_CHECK([sed -e '/^.*ofproto_dpif_monitor.*$/d' < ovs-vswitchd.log > tmp && mv tmp ovs-vswitchd.log && ovs-appctl vlog/reopen])
+AT_CHECK([sed -e '/^.*ofproto_dpif_monitor.*$/d' < ovs-vswitchd.log > tmp && ovs-appctl vlog/close && mv tmp ovs-vswitchd.log && ovs-appctl vlog/reopen])
 
 # enable cfm on p0.
 AT_CHECK([ovs-vsctl set interface p0 cfm_mpid=10])
@@ -6933,7 +6933,7 @@ OVS_WAIT_UNTIL([grep "monitor thread created" ovs-vswitchd.log])
 AT_CHECK([ovs-vsctl remove interface p0 cfm_mpid 10])
 # check log.
 OVS_WAIT_UNTIL([grep "monitor thread terminated" ovs-vswitchd.log])
-AT_CHECK([sed -e '/^.*ofproto_dpif_monitor.*$/d' < ovs-vswitchd.log > tmp && mv tmp ovs-vswitchd.log && ovs-appctl vlog/reopen])
+AT_CHECK([sed -e '/^.*ofproto_dpif_monitor.*$/d' < ovs-vswitchd.log > tmp && ovs-appctl vlog/close && mv tmp ovs-vswitchd.log && ovs-appctl vlog/reopen])
 
 # enable both bfd and cfm on p0.
 AT_CHECK([ovs-vsctl set interface p0 bfd:enable=true cfm_mpid=10])