From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A03E9A2E1B for ; Thu, 5 Sep 2019 05:25:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8715B1EB57; Thu, 5 Sep 2019 05:25:18 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4A0711EB4C for ; Thu, 5 Sep 2019 05:25:16 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2019 20:25:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,469,1559545200"; d="scan'208";a="212630252" Received: from dpdk-moyufen06.sh.intel.com ([10.67.117.220]) by fmsmga002.fm.intel.com with ESMTP; 04 Sep 2019 20:25:14 -0700 From: yufengmx To: dts@dpdk.org, lijuan.tu@intel.com, zhaoyan.chen@intel.com Cc: yufengmx Date: Thu, 5 Sep 2019 11:26:31 +0800 Message-Id: <20190905032631.11298-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190905032631.11298-1-yufengx.mo@intel.com> References: <20190905032631.11298-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/1] tests/l2fwd: wait l2fwd boot up ready X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" wait 5 second after l2fwd boot up. It is aimed to make sure trex detect link up status. Signed-off-by: yufengmx --- tests/TestSuite_l2fwd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py index e2c4118..ace5dff 100644 --- a/tests/TestSuite_l2fwd.py +++ b/tests/TestSuite_l2fwd.py @@ -196,7 +196,10 @@ class TestL2fwd(TestCase): # self.dut.send_expect(command_line, "memory mapped", 60) self.dut.send_expect(command_line, "L2FWD: entering main loop", 60) - + # wait 5 second after l2fwd boot up. + # It is aimed to make sure trex detect link up status. + if self.tester.is_pktgen: + time.sleep(5) info = "Executing l2fwd using %s queues, frame size %d and %s setup.\n" % \ (queues['queues'], frame_size, self.core_config) -- 2.21.0