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 CC9E2A050A; Sat, 7 May 2022 09:14:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A865A40696; Sat, 7 May 2022 09:14:26 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 677634068A for ; Sat, 7 May 2022 09:14:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651907665; x=1683443665; h=from:to:cc:subject:date:message-id; bh=egtN7mMX8zQT5GWCyjgDSmbG+D/iz8/5m1NG7az3dag=; b=KZ+JLCXyLzngWzM0l3GypeR49x1ehZmilOSnBUEl09RTvmX5SAnH7FKY XtZ6mDoCJxA7ocFbFSzgZMRyYLzw6AgRDiUYSRAIeB+6a69cmawLCmsLP Y+cNhQEa2bgCUMKAliYN2PjhYh0BsC4n6ycnIz53IOcpzmYs5rBFdzt04 0ucHNcAyjGp7LV3SHxx6sl3zZ9HccqsYPSX3vNOseJ/iLhbHSyGVIKOaa vOFmOVtsJaoZMr9WQ8EXcWvSSiZXeofFXte6w2mkgIWX95mSKnJUN6NVG pxpdhbWIJoinrGfRmF7cRunZ3PIsT4XdFuMOCWftQLOxOohbHbPmGuEbf g==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="268564921" X-IronPort-AV: E=Sophos;i="5.91,206,1647327600"; d="scan'208";a="268564921" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2022 00:14:24 -0700 X-IronPort-AV: E=Sophos;i="5.91,206,1647327600"; d="scan'208";a="736101293" Received: from unknown (HELO localhost.localdomain) ([10.239.251.203]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2022 00:14:23 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/eeprom_dump: fix script Date: Sat, 7 May 2022 23:31:06 +0800 Message-Id: <20220507153106.19508-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.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 fix 2 issues: 1. with '#' in the echo, it will interfere with the test results 2. after the case test, the port should be tied back to the dpdk driver Signed-off-by: Jiale Song --- tests/TestSuite_eeprom_dump.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_eeprom_dump.py b/tests/TestSuite_eeprom_dump.py index c1a5b4ea..b220316b 100644 --- a/tests/TestSuite_eeprom_dump.py +++ b/tests/TestSuite_eeprom_dump.py @@ -144,7 +144,7 @@ class TestEEPROMDump(TestCase): "#", ) portinfo["ethout"] = self.dut.send_expect( - f"cat ethtool_{testname}_hex_{port}.txt", "#" + f"cat ethtool_{testname}_hex_{port}.txt", "# ", trim_whitespace=False ) self.dump_to_file( @@ -171,6 +171,7 @@ class TestEEPROMDump(TestCase): Run after each test case. """ self.dut.kill_all() + self.dut.bind_interfaces_linux(self.drivername) def tear_down_all(self): """ -- 2.17.1