[V1] tests/ixgbe_vf_get_extra_queue_information: optimize the log when the case failed

Message ID 20210923173524.116643-1-yanx.xia@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/ixgbe_vf_get_extra_queue_information: optimize the log when the case failed |

Checks

Context Check Description
ci/Intel-suite-dts-test warning SKIPPED

Commit Message

Yan Xia Sept. 23, 2021, 5:35 p.m. UTC
  optimize the log info when the case failed

Signed-off-by: Yan Xia <yanx.xia@intel.com>
---
 tests/TestSuite_ixgbe_vf_get_extra_queue_information.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Lingli Chen Sept. 24, 2021, 1:45 a.m. UTC | #1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Yan Xia
> Sent: Friday, September 24, 2021 1:35 AM
> To: dts@dpdk.org
> Cc: Xia, YanX <yanx.xia@intel.com>
> Subject: [dts] [PATCH V1] tests/ixgbe_vf_get_extra_queue_information:
> optimize the log when the case failed
> 
> optimize the log info when the case failed
> 
> Signed-off-by: Yan Xia <yanx.xia@intel.com>

Tested-by: Yan Xia <yanx.xia@intel.com>
  
Tu, Lijuan Sept. 27, 2021, 6:18 a.m. UTC | #2
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Chen, LingliX
> Sent: 2021年9月24日 9:46
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/ixgbe_vf_get_extra_queue_information:
> optimize the log when the case failed
> 
> 
> > -----Original Message-----
> > From: dts <dts-bounces@dpdk.org> On Behalf Of Yan Xia
> > Sent: Friday, September 24, 2021 1:35 AM
> > To: dts@dpdk.org
> > Cc: Xia, YanX <yanx.xia@intel.com>
> > Subject: [dts] [PATCH V1] tests/ixgbe_vf_get_extra_queue_information:
> > optimize the log when the case failed
> >
> > optimize the log info when the case failed
> >
> > Signed-off-by: Yan Xia <yanx.xia@intel.com>
> 
> Tested-by: Yan Xia <yanx.xia@intel.com>

Applied
  

Patch

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