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 C11EAA056D; Tue, 3 Mar 2020 07:00:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B75572C02; Tue, 3 Mar 2020 07:00:52 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CE5092BA8 for ; Tue, 3 Mar 2020 07:00:50 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 22:00:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="233507022" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 02 Mar 2020 22:00:49 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 22:00:49 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 22:00:48 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.144]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 14:00:46 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 1/2] update script saving runtime and use new config file Thread-Index: AQHV7VOp1SNU8RsWN06qgoU4PRNRoag2Z3EA Date: Tue, 3 Mar 2020 06:00:46 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE90FF@SHSMSX101.ccr.corp.intel.com> References: <1582796880-27905-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1582796880-27905-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied the series, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Thursday, February 27, 2020 5:48 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 1/2] update script saving runtime and use new > config file >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_vhost_event_idx_interrupt.py | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) >=20 > 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): >=20 > example_para =3D "./examples/l3fwd-power/build/app/l3fwd-power " > para =3D " --log-level=3D9 %s -- -p %s --parse-ptype 1 --config = '%s'" % > (vdev_info, port_info, config_info) > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_l3fwd, no_pci=3DTru= e, > ports=3D[self.pci_info]) > + eal_params =3D > + self.dut.create_eal_parameters(cores=3Dself.core_list_l3fwd, > + no_pci=3DTrue) > command_line_client =3D example_para + eal_params + para > self.vhost.get_session_before(timeout=3D2) > 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 =3D 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() >=20 > 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 =3D VM(self.dut, 'vm%d' % i, 'vhost_sample') > + vm_info =3D VM(self.dut, 'vm%d' % i, > + 'vhost_event_idx_interrupt') > vm_info.load_config() > vm_params =3D {} > vm_params['driver'] =3D 'vhost-user' > @@ -180,7 +184,7 @@ class TestVhostEventIdxInterrupt(TestCase): > self.check_qemu_version(vm_info) > vm_dut =3D None > try: > - vm_dut =3D vm_info.start(load_config=3DFalse) > + vm_dut =3D > + vm_info.start(load_config=3DFalse,set_target=3DFalse) > if vm_dut is None: > raise Exception("Set up VM ENV failed") > except Exception as e: > -- > 1.8.3.1