Please don't post to both ovs-discuss and ovs-dev.  Moving ovs-discuss
to BCC.

On Fri, Aug 18, 2017 at 09:17:27AM +0800, Sam wrote:
> Hi all,
> 
> I'm running my test cases, I define a new macro in ofproto-macro.at like
> this;
> 
> m4_define([_OVS_VSWITCHD_START],
> >   [OVS_RUNDIR=/usr/local/var/run/openvswitch; export OVS_RUNDIR
> >    OVS_LOGDIR=/usr/local/var/log/openvswitch; export OVS_LOGDIR
> >    OVS_DBDIR=/usr/local/var/run/openvswitch; export OVS_DBDIR
> >    dnl  OVS_SYSCONFDIR=; export OVS_SYSCONFDIR
> >    /etc/init.d/openvswitch stop
> >    OVS_WAIT_UNTIL([tail -n 3 $OVS_LOGDIR/ovs-ctl.log | grep
> > "Killing ovsdb-server"])
> >    /etc/init.d/openvswitch start
> >    OVS_WAIT_UNTIL([tail -n 3 $OVS_LOGDIR/ovs-ctl.log | \
> > grep "Enabling remote OVSDB managers."])
> > ])
> 
> 
> And this got wrong, so I change it into this:
> 
> m4_define([_OVS_VSWITCHD_START],
> >   [OVS_RUNDIR=/usr/local/var/run/openvswitch; export OVS_RUNDIR
> >    OVS_LOGDIR=/usr/local/var/log/openvswitch; export OVS_LOGDIR
> >    OVS_DBDIR=/usr/local/var/run/openvswitch; export OVS_DBDIR
> >    dnl  OVS_SYSCONFDIR=; export OVS_SYSCONFDIR
> >    /etc/init.d/openvswitch stop
> >    OVS_WAIT_UNTIL([tail -n 3 $OVS_LOGDIR/ovs-ctl.log | \
> > grep "Killing ovsdb-server"])
> >    /etc/init.d/openvswitch start
> >    OVS_WAIT_UNTIL([tail -n 3 $OVS_LOGDIR/ovs-ctl.log | \
> > grep "Enabling remote OVSDB managers."])
> > ])
> 
> 
> But after I reconfigure the ovs, and run `make check`, I got same error as
> first, which is :
> 
> /home/gangyewei-3/mvs/mvs/tests/testsuite.dir/at-groups/1/test-source: line
> > 41: Enabling remote OVSDB managers.: command not found
> > stdout:
> > ./netdev-dpdk.at:24: exit code was 1, expected 0
> 
> 
> I think this is because the bug of first code, but I have change it into
> 2nd code, I don't know why still got error, or I have to re-run `boot.sh`
> in OVS folder to re-construct test cases?

"make check" is enough to rebuild the testsuite.  If you're unsure about
that, you can "rm" the testsuite and re-run.
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to