diff mbox series

[ovs-dev,v2] windows, tests: Modify service test

Message ID 20200924042633.210-1-aserdean@ovn.org
State New
Headers show
Series [ovs-dev,v2] windows, tests: Modify service test | expand

Commit Message

Alin Gabriel Serdean Sept. 24, 2020, 4:26 a.m. UTC
The database is now called "_Server" so look for that instead of
"Open_vSwitch".

Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
---
v2: Address Ilya's comments
---
 tests/daemon.at | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/daemon.at b/tests/daemon.at
index a7982de38..39d9aa391 100644
--- a/tests/daemon.at
+++ b/tests/daemon.at
@@ -218,11 +218,11 @@  OVS_WAIT_UNTIL([test -s ovsdb-server.pid])
 OVS_WAIT_UNTIL([sc query ovsdb-server | grep STATE | grep RUNNING > /dev/null 2>&1])
 AT_CHECK([kill -0 `cat ovsdb-server.pid`], [0], [ignore])
 AT_CHECK([ovs-appctl -t ovsdb-server ovsdb-server/list-dbs], [0],
-[Open_vSwitch
+[_Server
 ])
 AT_CHECK([sc stop ovsdb-server], [0], [ignore])
 OVS_WAIT_UNTIL([test ! -s ovsdb-server.pid])
-AT_CHECK([sc query ovsdb-server | grep STATE | grep STOPPED], [0], [ignore])
+OVS_WAIT_UNTIL([sc query ovsdb-server | grep STATE | grep STOPPED > /dev/null 2>&1])
 AT_CHECK([sc delete ovsdb-server], [0], [[[SC]] DeleteService SUCCESS
 ])
 AT_CLEANUP