From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7C3CDA00E6 for ; Fri, 19 Apr 2019 06:55:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D7991BACB; Fri, 19 Apr 2019 06:55:41 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 698881BA85 for ; Fri, 19 Apr 2019 06:55:39 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2019 21:55:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,368,1549958400"; d="scan'208";a="162953440" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 18 Apr 2019 21:55:37 -0700 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Fri, 19 Apr 2019 12:59:58 +0800 Message-Id: <1555649998-13234-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] test/unit_test_eal: bind ports before verifying result 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" Should bind the ports before verifying result; otherwise, if the case failed, the ports are still unbound, it will affect the later tests. Signed-off-by: Wenjie Li --- tests/TestSuite_unit_tests_eal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py index 2249113..07d788f 100644 --- a/tests/TestSuite_unit_tests_eal.py +++ b/tests/TestSuite_unit_tests_eal.py @@ -321,8 +321,8 @@ class TestUnitTestsEal(TestCase): # on FreeBSD need more time than other OS out = self.dut.send_expect("eal_flags_autotest", "RTE>>", 600) self.dut.send_expect("quit", "# ") - self.verify("Test OK" in out, "Test failed") self.dut.bind_interfaces_linux(driver=self.drivername) + self.verify("Test OK" in out, "Test failed") def test_alarm(self): """ -- 2.17.2