X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fovsdb-server.at;h=b81878c467b3ccca801787905b4eaff72d8bd5fc;hb=e0c7697cbcb56fde7aa725772eae75d15aa80403;hp=f5db1a8dd576355ba49d1aff01aeb75fa5913725;hpb=eb0cb3161f52bfb8360e48af6a869ba3a5f06add;p=openvswitch diff --git a/tests/ovsdb-server.at b/tests/ovsdb-server.at index f5db1a8d..b81878c4 100644 --- a/tests/ovsdb-server.at +++ b/tests/ovsdb-server.at @@ -322,8 +322,8 @@ dnl We can't fully re-check the contents of the database log, because the dnl order of the records is not predictable, but there should only be 4 lines dnl in it now. AT_CAPTURE_FILE([db]) -AT_CHECK([wc -l < db], [0], [4 -], [], [test ! -e pid || kill `cat pid`]) +AT_CHECK([test `wc -l < db` -eq 4], [0], [], [], + [test ! -e pid || kill `cat pid`]) dnl And check that the dumped data is the same too: AT_CHECK([ovsdb-client dump unix:socket ordinals], [0], [stdout], [ignore], [test ! -e pid || kill `cat pid`]) @@ -348,8 +348,8 @@ AT_CHECK( [0], [[[{"count":3}] ]], [ignore], [test ! -e pid || kill `cat pid`]) dnl There should be 6 lines in the log now. -AT_CHECK([wc -l < db], [0], [6 -], [], [test ! -e pid || kill `cat pid`]) +AT_CHECK([test `wc -l < db` -eq 6], [0], [], [], + [test ! -e pid || kill `cat pid`]) dnl Then check that the dumped data is correct. AT_CHECK([ovsdb-client dump unix:socket ordinals], [0], [stdout], [ignore], [test ! -e pid || kill `cat pid`])