test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption
@ 2021-03-24  1:38 Zhou Jun
  2021-03-24  1:45 ` Zhou, JunX W
  0 siblings, 1 reply; 3+ messages in thread
From: Zhou Jun @ 2021-03-24  1:38 UTC (permalink / raw)
  To: dts; +Cc: Zhou Jun

use ethtool set priv flags to make copper cable can sense
 the interruption

Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_link_status_interrupt.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_link_status_interrupt.py b/tests/TestSuite_link_status_interrupt.py
index e5fd69e..2e8c282 100644
--- a/tests/TestSuite_link_status_interrupt.py
+++ b/tests/TestSuite_link_status_interrupt.py
@@ -77,6 +77,8 @@ class TestLinkStatusInterrupt(TestCase):
         """
         self.intf = self.tester.get_interface(
             self.tester.get_local_port(dutPort))
+        if self.dut.get_os_type() != 'freebsd':
+            self.tester.send_expect("ethtool --set-priv-flags %s link-down-on-close on" % self.intf, "#", 10)
         self.tester.send_expect("ifconfig %s %s" %
                                 (self.intf, status.lower()), "# ", 10)
         verify_point = "Port %s Link %s" % (dutPort, status.lower()) 
-- 
1.8.3.1


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

end of thread, other threads:[~2021-03-25  5:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  1:38 [dts] [PATCH V1] tests/link_status_interrupt: make copper cable can sense the interruption Zhou Jun
2021-03-24  1:45 ` Zhou, JunX W
2021-03-25  5:56   ` 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).