From patchwork Thu Jul 15 23:34:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Han Zhou X-Patchwork-Id: 1505940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GQrML4Z24z9sWd for ; Fri, 16 Jul 2021 09:35:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 1025F8435B; Thu, 15 Jul 2021 23:35:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VyRU0UwdmBj8; Thu, 15 Jul 2021 23:35:07 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 634E084354; Thu, 15 Jul 2021 23:35:06 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3354CC001A; Thu, 15 Jul 2021 23:35:06 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id D6FE2C000E for ; Thu, 15 Jul 2021 23:35:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C4CFF60B00 for ; Thu, 15 Jul 2021 23:35:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HNAzGxd67EEw for ; Thu, 15 Jul 2021 23:35:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by smtp3.osuosl.org (Postfix) with ESMTPS id D5D21606B3 for ; Thu, 15 Jul 2021 23:35:03 +0000 (UTC) Received: (Authenticated sender: hzhou@ovn.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 236FD100005; Thu, 15 Jul 2021 23:35:00 +0000 (UTC) From: Han Zhou To: dev@openvswitch.org Date: Thu, 15 Jul 2021 16:34:51 -0700 Message-Id: <20210715233451.2427987-1-hzhou@ovn.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH ovn] ovn-sbctl.at: Fix timing problem of count-flows test. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Fixes: 895e02ec0be6("ovn-sbctl.c Add logical flows count numbers") Signed-off-by: Han Zhou Acked-by: Ben Pfaff --- tests/ovn-sbctl.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ovn-sbctl.at b/tests/ovn-sbctl.at index 16f5dabcc..dabf62d2b 100644 --- a/tests/ovn-sbctl.at +++ b/tests/ovn-sbctl.at @@ -200,7 +200,7 @@ Total number of logical flows = 0 ]) # create some logical flows -check ovn-nbctl ls-add count-test +check ovn-nbctl --wait=sb ls-add count-test OVS_WAIT_UNTIL([total_lflows=`count_entries`; test $total_lflows -ne 0]) @@ -219,7 +219,7 @@ $ingress_lflows ]) # add another datapath -check ovn-nbctl ls-add count-test2 +check ovn-nbctl --wait=sb ls-add count-test2 # check total logical flows in 2 datapathes AT_CHECK_UNQUOTED([ovn-sbctl count-flows | grep "flows =" | awk 'NF>1{print $NF}'], [0], [dnl