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 A017DA0524; Mon, 27 Jul 2020 09:45:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5A5AD1BFE8; Mon, 27 Jul 2020 09:45:55 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 28CF61BE90 for ; Mon, 27 Jul 2020 09:45:53 +0200 (CEST) IronPort-SDR: gpng0rcKLYDEVH+EVc2aF349o6v/hS5tUj+PV4RauxVZfkj1fGc80/GG+Guy5BJsaOYmzshZvd qjyJlvvWneJg== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="148445265" X-IronPort-AV: E=Sophos;i="5.75,401,1589266800"; d="scan'208";a="148445265" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2020 00:45:53 -0700 IronPort-SDR: R4B8sszXJMMEVlueJZOWv3ZJNgH2lEY/wl7DPug9h/s1ExvBlpuGHtYjSjvS/KxM6NPbTOJYMs gsWiLnlCAgDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,401,1589266800"; d="scan'208";a="303368948" Received: from unknown (HELO localhost.localdomain) ([10.240.183.106]) by orsmga002.jf.intel.com with ESMTP; 27 Jul 2020 00:45:51 -0700 From: Jianwei Mei To: dts@dpdk.org Cc: Jianwei Mei Date: Mon, 27 Jul 2020 16:08:17 +0000 Message-Id: <20200727160817.9609-1-jianweix.mei@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle: recovery ENV for other cases run 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" Recovery ENV after test case test_dcf_with_l2fwd_03 or test_dcf_with_l2fwd_02 run Signed-off-by: Jianwei Mei --- tests/TestSuite_dcf_lifecycle.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py index 3971941..e3954d0 100644 --- a/tests/TestSuite_dcf_lifecycle.py +++ b/tests/TestSuite_dcf_lifecycle.py @@ -1048,6 +1048,10 @@ class TestDcfLifeCycle(TestCase): """ Run after each test case. """ + if self._suite_result.test_case == "test_dcf_with_l2fwd_03" or self._suite_result.test_case == "test_dcf_with_l2fwd_02": + self.destroy_resource() + self.init_suite() + self.preset_test_environment() self.dut.kill_all() self.clear_flags() -- 2.17.1