From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37E9CA0548; Wed, 8 Jun 2022 08:37:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F7BC4021F; Wed, 8 Jun 2022 08:37:06 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id CD5AE4021D for ; Wed, 8 Jun 2022 08:37:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654670224; x=1686206224; h=from:to:cc:subject:date:message-id; bh=V1GAl7NSW6IMVwp7Kfk30E1EP69/rZ1eSFxb1IqmeS8=; b=mT/p2uL5Yd1Vj43PKNy+6Ua3Viz/by5DUUREQEdPq2k0JtDDWC4PipN/ 20n0a8cbLGJbdykYuzn9vuRvHGzjI5sSNSjEpuSriTVhS/UppS3Km20OF u3h6yOr9cUXT1TskRWpX/wuIFiK9CCV2FzDbQq8XDt3kkzb6N+Ksb27rW ZfIhQ+63wb4YnakOilLiqyXJ37ARiT3w44VvrOffHcsuCzEfsKNdmAWBB bBS9dltXbUpIRRCQowV5kycv+MGNCZ3gEvZKVXN+iH3cwp5MsZAsEKcax yL+06l4kkUU9yQzCsC/2uKhc24Lk6cqowYYUtOfJKYrSSQHRXALefY4Hq Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10371"; a="302158720" X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="302158720" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 23:37:03 -0700 X-IronPort-AV: E=Sophos;i="5.91,285,1647327600"; d="scan'208";a="584677278" Received: from unknown (HELO localhost.localdomain.localdomain) ([10.239.251.127]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2022 23:37:02 -0700 From: "Yu.Jiang" To: dts@dpdk.org Cc: "Yu.Jiang" Subject: [dts][PATCH V1] tests/stats_checks: rebind interfaces after running test_xstats_check_vf Date: Wed, 8 Jun 2022 14:36:58 +0800 Message-Id: <1654670218-5658-1-git-send-email-yux.jiang@intel.com> X-Mailer: git-send-email 1.8.3.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 From: "Yu.Jiang" test_xstats_check_vf: rebind interface to avoid it impact next suite. Signed-off-by: Yu.Jiang --- tests/TestSuite_stats_checks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestSuite_stats_checks.py b/tests/TestSuite_stats_checks.py index 331e9c3b..7ebb74d5 100644 --- a/tests/TestSuite_stats_checks.py +++ b/tests/TestSuite_stats_checks.py @@ -260,6 +260,9 @@ class TestStatsChecks(TestCase): Run after each test case. """ self.dut.kill_all() + if self._suite_result.test_case == "test_xstats_check_vf": + self.dut.destroy_sriov_vfs_by_port(self.dut_ports[0]) + self.dut.bind_interfaces_linux(self.drivername) def tear_down_all(self): """ -- 2.25.1