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 F1996A0597; Wed, 8 Apr 2020 11:24:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E0C081C12F; Wed, 8 Apr 2020 11:24:49 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 023431C11A for ; Wed, 8 Apr 2020 11:24:47 +0200 (CEST) IronPort-SDR: c5/d/gFmg9+1c/BCjkQzDKeqqc71l13ZtqI4iN/tGJEVW0nHoUznH3OVO8JkzeLVq10JhDv4TL Gxknrg/sFhdQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2020 02:24:47 -0700 IronPort-SDR: VFWpFWTB7fRXJrLOxWn00hy0ZBQSLab6IwkvxcvnlxvNz2bkIunmMtV2CsRf/9GBsoTOTOYjy4 a0jkVc0LgtoA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,357,1580803200"; d="scan'208";a="269701694" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 08 Apr 2020 02:24:46 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 8 Apr 2020 17:18:48 +0800 Message-Id: <1586337534-448577-2-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1586337534-448577-1-git-send-email-qimaix.xiao@intel.com> References: <1586337534-448577-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 1/7]tests/TestSuite_iavf: fix kill l3fwd-power 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" Signed-off-by: Xiao Qimai --- tests/TestSuite_iavf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_iavf.py b/tests/TestSuite_iavf.py index dedabbd..248bd8d 100644 --- a/tests/TestSuite_iavf.py +++ b/tests/TestSuite_iavf.py @@ -729,6 +729,7 @@ class TestIavf(TestCase): def test_vf_rx_interrupt(self): # build l3fwd-power + self.vm_dut_alt = self.vm_dut_0.create_session(name="vm_dut_alt") out = self.vm_dut_0.build_dpdk_apps("./examples/l3fwd-power") self.verify("Error" not in out, "Compilation error") self.verify("No such" not in out, "Compilation error") @@ -755,13 +756,14 @@ class TestIavf(TestCase): out = self.vm_dut_0.get_session_output() self.verify('L3FWD_POWER: lcore 0 is waked up from rx interrupt' in out, 'lcore 0 is not waked up') self.verify('L3FWD_POWER: lcore 1 is waked up from rx interrupt' in out, 'lcore 1 is not waked up') - self.vm_dut_0.send_expect("^C", "# ", 60) + self.vm_dut_alt.send_expect("killall l3fwd-power", "# ", 10) self.vm_dut_0.bind_interfaces_linux(driver="igb_uio") self.interrupt_flag = True def tear_down(self): if self.running_case == "test_vf_rx_interrupt": - self.vm_dut_0.send_expect("^C", "# ", 60) + self.vm_dut_alt.send_expect("killall l3fwd-power", "# ", 10) + self.vm_dut_alt.close() else: self.vm0_testpmd.quit() -- 1.8.3.1