From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25B4942941; Fri, 14 Apr 2023 14:47:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20AD5410F6; Fri, 14 Apr 2023 14:47:45 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 924F140144 for ; Fri, 14 Apr 2023 14:47:44 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id p17so7014610pla.3 for ; Fri, 14 Apr 2023 05:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1681476463; x=1684068463; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oCYinNlEYh8riF3rRs6gGZAu8KuX8v6kRx6Fypk1j8E=; b=r+nQ1ZBIgWu4XC5Vs39JJv86xC4cImzFVmT9K3rh1oeYcD3qbhq7bEBBVo2fOcSSoV u3CI4erp4wLskpV1hrOke+MgtARjufYM/Cy6VGXxbC4CJOKqilOkNr7xc5X5J+9EB3Kf /GSbILTnQBzj30c0sjZCDApdyzviBQ5YeDsGisVixVGtElpZHTSZeGr/GOgGuGMBeQpW LGqRY14ijkQAHQVeSH3UGzdDM+ZtwYUNZSyZH6iB9icYCgPpfTXtRdZ3+hs9QvPTyvwI 2+H1DSUZGlZ3GaTeH08znzc66EOfYvoAlf+4wQFG0Gm9Xg8eGFK0jflNu7czrJEmfgGX A0/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681476463; x=1684068463; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oCYinNlEYh8riF3rRs6gGZAu8KuX8v6kRx6Fypk1j8E=; b=jC47blsLnAnnlSsR9kIqRJlWH52AJF2Wl23MMQx3TTHhgK57JDSoe3hZ8wB2LscdDz JYhuDfwORSupGH/OArDADZimH3CAVMoI5/DzeSaAA8pqpbivb0S3GRcD3MOI+tTYZxEK rnFa5X7WOCMjwySW6qGE6MNXV9tHjx1HYw3a37eYnFQ38b4M+Bz1BPMeRgG+s9u9fhiV s0o+qX12dR2nARAn6zKY5sJP8IQVWSPj8/SPDAqwAupNhDOV+7lE0hOW3NlIpEDcHj4N pse+EYvqLG2CsWi+soZPRc4l/bvxeJP/l7JL7WFZx0LcW+mTBnMcqYPCukRfxviam0vn wyCg== X-Gm-Message-State: AAQBX9cTcTl13m/keguHpiRU0fIIlMyDZBqWzwcA5f1yQahX//eY4W9q CuMZqw+4Wh+OcQYLGtRlj80BjiPASTJn7VMA4Gs= X-Google-Smtp-Source: AKy350b9fDILmKpqg8/Pmziq9S2oU0mXkwqcj7w4I/g5DykcEVh/Y1dAEBEDupubViF087gDh9JiKQ== X-Received: by 2002:a17:90b:1051:b0:236:a3c2:168a with SMTP id gq17-20020a17090b105100b00236a3c2168amr5400845pjb.33.1681476463619; Fri, 14 Apr 2023 05:47:43 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b]) by smtp.gmail.com with ESMTPSA id w8-20020a170902904800b001a239325f1csm2998097plz.100.2023.04.14.05.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 05:47:43 -0700 (PDT) From: Akihiko Odaki To: Cc: dts@dpdk.org, Akihiko Odaki Subject: [PATCH] tests/dual_vlan: Explicitly wait for tcpdump Date: Fri, 14 Apr 2023 21:47:39 +0900 Message-Id: <20230414124739.67152-1-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org It is observed that sometimes tcpdump do not finish writing the packet dump immediately after killed. Wait for tcpdump to avoid such race. Signed-off-by: Akihiko Odaki --- tests/TestSuite_dual_vlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py index 70395663..694d4b2e 100644 --- a/tests/TestSuite_dual_vlan.py +++ b/tests/TestSuite_dual_vlan.py @@ -197,7 +197,7 @@ class TestDualVlan(TestCase): def get_tcpdump_package(self): self.tester.send_expect("killall tcpdump", "#") - self.tester.send_expect(" ", "#") + self.tester.send_expect("wait", "#") return self.tester.send_expect( "tcpdump -nn -e -v -r ./getPackageByTcpdump.cap", "#" ) -- 2.40.0