X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fovs-vsctl.at;h=22028d900eb8236069b6236d2fcde213ce2bf173;hb=2280e7223cc5d014fe60ad3be45b8e4d9d401997;hp=b1e7948498bd21eea1e4718676eb7088ae55102e;hpb=b54e22e91eee43eb04ad53e2fa919be44f34e731;p=openvswitch diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at index b1e79484..22028d90 100644 --- a/tests/ovs-vsctl.at +++ b/tests/ovs-vsctl.at @@ -4,7 +4,15 @@ dnl Creates an empty database in the current directory and then starts dnl an ovsdb-server on it for ovs-vsctl to connect to. m4_define([OVS_VSCTL_SETUP], [OVS_CHECK_LCOV( - [ovsdb-tool create db $abs_builddir/../vswitchd/vswitch-idl.ovsschema], + [SCHEMA=$abs_top_builddir/vswitchd/vswitch-idl.ovsschema + if test ! -e $SCHEMA; then + SCHEMA=$abs_top_srcdir/vswitchd/vswitch-idl.ovsschema + if test ! -e $SCHEMA; then + echo 'Failed to find vswitch-idl.ovsschema' + exit 1 + fi + fi + ovsdb-tool create db $SCHEMA], [0], [stdout], [ignore]) OVS_CHECK_LCOV( [[ovsdb-tool transact db \ @@ -12,7 +20,7 @@ m4_define([OVS_VSCTL_SETUP], "table": "Open_vSwitch", "row": {}}]']], [0], [ignore], [ignore]) - AT_CHECK([ovsdb-server --detach --pidfile=$PWD/pid --listen=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1], [0], [ignore], [ignore])]) + AT_CHECK([ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1], [0], [ignore], [ignore])]) dnl OVS_VSCTL_CLEANUP dnl