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 98E1DA055A; Thu, 27 Feb 2020 10:52:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 909881BF76; Thu, 27 Feb 2020 10:52:10 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 3D1B72C02 for ; Thu, 27 Feb 2020 10:52:09 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2020 01:52:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,491,1574150400"; d="scan'208";a="317730980" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.179.33]) by orsmga001.jf.intel.com with ESMTP; 27 Feb 2020 01:52:07 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Thu, 27 Feb 2020 17:47:59 +0800 Message-Id: <1582796880-27905-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1 1/2] update script saving runtime and use new config file 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_event_idx_interrupt.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vhost_event_idx_interrupt.py b/tests/TestSuite_vhost_event_idx_interrupt.py index abbdc42..38cdc77 100644 --- a/tests/TestSuite_vhost_event_idx_interrupt.py +++ b/tests/TestSuite_vhost_event_idx_interrupt.py @@ -108,7 +108,7 @@ class TestVhostEventIdxInterrupt(TestCase): example_para = "./examples/l3fwd-power/build/app/l3fwd-power " para = " --log-level=9 %s -- -p %s --parse-ptype 1 --config '%s'" % (vdev_info, port_info, config_info) - eal_params = self.dut.create_eal_parameters(cores=self.core_list_l3fwd, no_pci=True, ports=[self.pci_info]) + eal_params = self.dut.create_eal_parameters(cores=self.core_list_l3fwd, no_pci=True) command_line_client = example_para + eal_params + para self.vhost.get_session_before(timeout=2) self.vhost.send_expect(command_line_client, "POWER", 40) @@ -126,6 +126,10 @@ class TestVhostEventIdxInterrupt(TestCase): relauch l3fwd-power sample for port up """ self.dut.send_expect("killall -s INT l3fwd-power", "#") + # make sure l3fwd-power be killed + pid = self.dut.send_expect("ps -ef |grep l3|grep -v grep |awk '{print $2}'", "#") + if pid: + self.dut.send_expect("kill -9 %s" % pid, "#") self.lanuch_l3fwd_power() def set_vm_cpu_number(self, vm_config): @@ -162,7 +166,7 @@ class TestVhostEventIdxInterrupt(TestCase): start qemus """ for i in range(vm_num): - vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample') + vm_info = VM(self.dut, 'vm%d' % i, 'vhost_event_idx_interrupt') vm_info.load_config() vm_params = {} vm_params['driver'] = 'vhost-user' @@ -180,7 +184,7 @@ class TestVhostEventIdxInterrupt(TestCase): self.check_qemu_version(vm_info) vm_dut = None try: - vm_dut = vm_info.start(load_config=False) + vm_dut = vm_info.start(load_config=False,set_target=False) if vm_dut is None: raise Exception("Set up VM ENV failed") except Exception as e: -- 1.8.3.1