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 6AC97A0350; Wed, 1 Jul 2020 11:29:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2FAAC1C2E8; Wed, 1 Jul 2020 11:29:29 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 294781C2B8 for ; Wed, 1 Jul 2020 11:29:26 +0200 (CEST) IronPort-SDR: 0AREa6gmwqcwcZcZf5kHEeWuKYhfAfFZXU5Ew1fTIDw489yMpwjF4tOTavO1fmzB69zn+9ZGma lsLmdrIlkF6g== X-IronPort-AV: E=McAfee;i="6000,8403,9668"; a="211574001" X-IronPort-AV: E=Sophos;i="5.75,299,1589266800"; d="scan'208";a="211574001" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 02:29:26 -0700 IronPort-SDR: 8fVufC3kQs8y5BhlkaspmtigxihHVo8igISQiXg30Yj1rt2F2CYdy8BtMqeT8Vmc1x5eUWVe31 8hj0lWB7LXxw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,299,1589266800"; d="scan'208";a="313705399" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga002.fm.intel.com with ESMTP; 01 Jul 2020 02:29:25 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Wed, 1 Jul 2020 17:30:40 +0800 Message-Id: <20200701093040.3820-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/kernelpf_iavf: destory env need remove to run after this case 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" If vf_rx_interrupt verified failed, it can't restore env and influence after cases. Signed-off-by: Xie wei --- tests/TestSuite_kernelpf_iavf.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index fd48fa2..6fb1bae 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -891,9 +891,6 @@ class TestKernelpfIavf(TestCase): self.verify('L3FWD_POWER: lcore 6 is waked up from rx interrupt' in out, 'lcore 6 is not waked up') self.verify('L3FWD_POWER: lcore 7 is waked up from rx interrupt' in out, 'lcore 7 is not waked up') self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True) - self.interrupt_flag = True - time.sleep(1) - self.destroy_2vf_in_2pf() def test_vf_unicast(self): self.vm_testpmd.start_testpmd("all") @@ -984,8 +981,9 @@ class TestKernelpfIavf(TestCase): """ Run after each test case. """ - if self.interrupt_flag is True: - self.interrupt_flag = False + if self.running_case == "test_vf_rx_interrupt":: + self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True) + self.destroy_2vf_in_2pf() else: self.vm_testpmd.execute_cmd("quit", "#") time.sleep(1) -- 2.17.1