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 BDEBDA0597; Wed, 8 Apr 2020 11:24:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B15041C0CC; Wed, 8 Apr 2020 11:24:55 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BE9631C19C for ; Wed, 8 Apr 2020 11:24:53 +0200 (CEST) IronPort-SDR: avaUEOTGWfxA79JItK/aHd+XoGzln1KP0o5AWD2tuE7pe9zXW/zZlsGNdfEZC8GRXeq5oo0RCT 68KCew1HQWhA== 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:53 -0700 IronPort-SDR: F1lljD5TOZVevjpsBvHw/YV5tkaUvNatqDt0Keo9jTnVvEG6Z0w3l/5K7aQWZYnXexhTfcMyg5 1v3Ke/TzShKg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,357,1580803200"; d="scan'208";a="269701716" 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:52 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 8 Apr 2020 17:18:53 +0800 Message-Id: <1586337534-448577-7-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 6/7]tests/TestSuite_vhost_virtio_pmd_interrupt: 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_vhost_virtio_pmd_interrupt.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py index ca69932..bf50b07 100644 --- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py +++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py @@ -268,13 +268,18 @@ class TestVhostVirtioPmdInterrupt(TestCase): """ close all vms """ - self.vm_dut.send_expect("^c", "#", 15) - self.vm_dut.send_expect("cp /tmp/main.c ./examples/l3fwd-power/", "#", 15) - out = self.vm_dut.build_dpdk_apps('examples/l3fwd-power') - self.vm.stop() + if self.vm_dut is not None: + vm_dut2 = self.vm_dut.create_session(name="vm_dut2") + vm_dut2.send_expect("killall l3fwd-power", "# ", 10) + # self.vm_dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True) + self.vm_dut.send_expect("cp /tmp/main.c ./examples/l3fwd-power/", "#", 15) + out = self.vm_dut.build_dpdk_apps('examples/l3fwd-power') + self.vm.stop() + self.dut.close_session(vm_dut2) self.vhost_user.send_expect("quit", "#", 10) self.dut.close_session(self.vhost_user) + def test_perf_virtio_pmd_interrupt_with_4queues(self): """ wake up virtio_user 0.95 core with l3fwd-power sample @@ -329,7 +334,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): Run after each test case. """ self.stop_all_apps() - self.dut.send_expect("killall -s INT testpmd", "#") + self.dut.kill_all() self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") def tear_down_all(self): -- 1.8.3.1