I have to ./boot.sh, then the test case will refresh
2017-08-18 9:17 GMT+08:00 Sam :
> 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?
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss