test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_vf_kernel:disable ipv6
@ 2020-12-29  6:56 Xie wei
  2020-12-29  7:02 ` Xie, WeiX
  2020-12-30  5:35 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xie wei @ 2020-12-29  6:56 UTC (permalink / raw)
  To: dts; +Cc: Xie wei

it need disable ipv6 temporarily before checking the rx-packets of network interface.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_vf_kernel.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_vf_kernel.py b/tests/TestSuite_vf_kernel.py
index 54676c2d..c1977f7b 100755
--- a/tests/TestSuite_vf_kernel.py
+++ b/tests/TestSuite_vf_kernel.py
@@ -464,6 +464,9 @@ class TestVfKernel(TestCase):
         """
         verify packet statistic
         """
+        time.sleep(1)
+        self.vm0_dut.send_expect("sysctl net.ipv6.conf.all.disable_ipv6=1", "#")
+        self.vm0_dut.send_expect("sysctl net.ipv6.conf.default.disable_ipv6=1", "#")
         time.sleep(10)
         out = self.vm0_dut.send_expect("ethtool -S %s" % self.vm0_intf0, "#")
         rx_packets_before = re.findall("\s*rx.*\d+.*packets:\s*(\d*)", out)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-30  5:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-29  6:56 [dts] [PATCH V1] tests/TestSuite_vf_kernel:disable ipv6 Xie wei
2020-12-29  7:02 ` Xie, WeiX
2020-12-30  5:35 ` Tu, Lijuan

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).