test suite reviews and discussions
 help / color / mirror / Atom feed
From: zhaomeijuan <meijuanx.zhao@intel.com>
To: dts@dpdk.org
Cc: "meijuanx.zhao" <meijuanx.zhao@intel.com>
Subject: [dts] [PATCH V1] tests/link_flowctrl: fix syntax error
Date: Mon, 25 Mar 2019 15:42:56 +0000	[thread overview]
Message-ID: <20190325154256.7073-1-meijuanx.zhao@intel.com> (raw)

From: "meijuanx.zhao" <meijuanx.zhao@intel.com>

Signed-off-by: meijuanx.zhao <meijuanx.zhao@intel.com>
---
 tests/TestSuite_link_flowctrl.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flowctrl.py
index 0057b46..83fd724 100644
--- a/tests/TestSuite_link_flowctrl.py
+++ b/tests/TestSuite_link_flowctrl.py
@@ -339,9 +339,9 @@ class TestLinkFlowctrl(TestCase):
                                             tx_flow_control='on',
                                             pause_frame_fwd='on')
 
-        print "Packet loss: %.3f%%" % result
+        print "Packet loss: %.3f%%" % result[0]
 
-        self.verify(result <= 0.01,
+        self.verify(result[0] <= 0.01,
                     "Link flow control fail, the loss percent is more than 1%")
 
     def test_perf_flowctrl_on_pause_fwd_off(self):
@@ -353,9 +353,9 @@ class TestLinkFlowctrl(TestCase):
                                             tx_flow_control='on',
                                             pause_frame_fwd='off')
 
-        print "Packet loss: %.3f%%" % result
+        print "Packet loss: %.3f%%" % result[0]
 
-        self.verify(result <= 0.01,
+        self.verify(result[0] <= 0.01,
                     "Link flow control fail, the loss percent is more than 1%")
 
     def test_perf_flowctrl_rx_on(self):
@@ -367,9 +367,9 @@ class TestLinkFlowctrl(TestCase):
                                             tx_flow_control='on',
                                             pause_frame_fwd='off')
 
-        print "Packet loss: %.3f%%" % result
+        print "Packet loss: %.3f%%" % result[0]
 
-        self.verify(result <= 0.01,
+        self.verify(result[0] <= 0.01,
                     "Link flow control fail, the loss percent is more than 1%")
 
     def test_perf_flowctrl_off_pause_fwd_on(self):
@@ -381,9 +381,9 @@ class TestLinkFlowctrl(TestCase):
                                             tx_flow_control='off',
                                             pause_frame_fwd='on')
 
-        print "Packet loss: %.3f%%" % result
+        print "Packet loss: %.3f%%" % result[0]
 
-        self.verify(result >= 0.5,
+        self.verify(result[0] >= 0.5,
                     "Link flow control fail, the loss percent is less than 50%")
 
     def test_perf_flowctrl_off_pause_fwd_off(self):
@@ -395,9 +395,9 @@ class TestLinkFlowctrl(TestCase):
                                             tx_flow_control='off',
                                             pause_frame_fwd='off')
 
-        print "Packet loss: %.3f%%" % result
+        print "Packet loss: %.3f%%" % result[0]
 
-        self.verify(result >= 0.5,
+        self.verify(result[0] >= 0.5,
                     "Link flow control fail, the loss percent is less than 50%")
 
     def test_perf_flowctrl_tx_on(self):
@@ -409,9 +409,9 @@ class TestLinkFlowctrl(TestCase):
                                             tx_flow_control='on',
                                             pause_frame_fwd='off')
 
-        print "Packet loss: %.3f%%" % result
+        print "Packet loss: %.3f%%" % result[0]
 
-        self.verify(result <= 0.01,
+        self.verify(result[0] <= 0.01,
                     "Link flow control fail, the loss percent is more than 1%")
 
     def tear_down_all(self):
-- 
2.17.1


             reply	other threads:[~2019-03-25  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-25 15:42 zhaomeijuan [this message]
2019-04-03 16:23 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190325154256.7073-1-meijuanx.zhao@intel.com \
    --to=meijuanx.zhao@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).