X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fovsdb-macros.at;h=2aa752b0411410c79dc8deabb30d5dcee2b224f2;hb=c5cf10598f8c9f4428291e9df3ecd72a05fb1ccf;hp=298236d6c24140f9654c586678b1b491f79de1ad;hpb=29381db022b1fd73c3d6e69150dd0cca64a59dfa;p=sliver-openvswitch.git diff --git a/tests/ovsdb-macros.at b/tests/ovsdb-macros.at index 298236d6c..2aa752b04 100644 --- a/tests/ovsdb-macros.at +++ b/tests/ovsdb-macros.at @@ -2,12 +2,14 @@ dnl OVSDB_INIT([$1]) dnl dnl Creates an empty database named $1. m4_define([OVSDB_INIT], - [OVS_CHECK_LCOV( + [OVS_RUNDIR=`pwd`; export OVS_RUNDIR + AT_CHECK( [ovsdb-tool create $1 $abs_top_srcdir/vswitchd/vswitch.ovsschema], [0], [stdout], [ignore]) - OVS_CHECK_LCOV( + AT_CHECK( [[ovsdb-tool transact $1 \ - '[{"op": "insert", + '["Open_vSwitch", + {"op": "insert", "table": "Open_vSwitch", "row": {}}]']], [0], [ignore], [ignore])])