From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 7FCC81B3AF for ; Thu, 2 Aug 2018 05:20:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2018 20:20:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,434,1526367600"; d="scan'208";a="77584154" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 01 Aug 2018 20:20:41 -0700 From: wenjieli To: dts@dpdk.org Cc: wenjieli Date: Thu, 2 Aug 2018 11:21:54 +0800 Message-Id: <1533180114-110123-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] short_live/clean_up_with_signal_testpmd: the expected return value of send_expect is incorrect on Suse12 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: , X-List-Received-Date: Thu, 02 Aug 2018 03:20:46 -0000 In test_clean_up_with_signal_testpmd(): 1. change the return value from "LSC event" to "testpmd>", since on Suse12 the testpmd failed to start when using "LSC event" 2. wait 5 seconds to ensure that testpmd is ready before the DUT sends packets Signed-off-by: wenjieli --- tests/TestSuite_short_live.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py index 238e3ab..d65dc6b 100644 --- a/tests/TestSuite_short_live.py +++ b/tests/TestSuite_short_live.py @@ -151,10 +151,11 @@ class TestShortLiveApp(TestCase): for i in range(repeat_time): #dpdk start print "clean_up_with_signal_testpmd round %d" % (i + 1) - self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i --portmask=0x3" % self.target, "LSC event", 120) + self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 -- -i --portmask=0x3" % self.target, "testpmd>", 120) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") self.dut.send_expect("start", "testpmd>") + time.sleep(5) self.check_forwarding([0, 1], self.nic) # kill with differen Signal -- 1.9.3