From patchwork Thu Sep 23 17:35:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 99467 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B032A0C43; Thu, 23 Sep 2021 11:34:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6170341225; Thu, 23 Sep 2021 11:34:01 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 0D906410DD for ; Thu, 23 Sep 2021 11:33:59 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="223452974" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="223452974" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 02:33:58 -0700 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="474796894" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 02:33:56 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Thu, 23 Sep 2021 17:35:24 +0000 Message-Id: <20210923173524.116643-1-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [dts] [PATCH V1] tests/ixgbe_vf_get_extra_queue_information: optimize the log when the case failed 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 Sender: "dts" optimize the log info when the case failed Signed-off-by: Yan Xia Tested-by: Yan Xia --- tests/TestSuite_ixgbe_vf_get_extra_queue_information.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_ixgbe_vf_get_extra_queue_information.py b/tests/TestSuite_ixgbe_vf_get_extra_queue_information.py index 57db70f4..eeef6c75 100644 --- a/tests/TestSuite_ixgbe_vf_get_extra_queue_information.py +++ b/tests/TestSuite_ixgbe_vf_get_extra_queue_information.py @@ -130,7 +130,7 @@ class TestIxgbeVfGetExtraInfo(TestCase): elif rev_num_added1 == 100 and rev_byte_added1 != 0: queue = 1 else: - print(utils.RED("There is no packet received.")) + self.verify(False, "There is no packet received.") return queue