Skip to content

Commit

Permalink
Merge pull request avocado-framework-tests#1501 from smruti77/ethtool…
Browse files Browse the repository at this point in the history
…_fix

Fix ethtool_test.py
  • Loading branch information
narasimhan-v authored Dec 19, 2019
2 parents 8154c04 + 4de6b70 commit e3217b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions io/net/ethtool_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from avocado.utils import process
from avocado.utils import distro
from avocado.utils import configure_network
from avocado.utils.configure_network import HostInfo


class Ethtool(Test):
Expand Down Expand Up @@ -69,7 +68,7 @@ def setUp(self):
else:
configure_network.set_ip(self.ipaddr, self.netmask, self.iface,
interface_type='Ethernet')
if not HostInfo.ping_check(self, self.iface, self.peer, "5"):
if not configure_network.ping_check(self.iface, self.peer, "5"):
self.cancel("No connection to peer")
self.args = self.params.get("arg", default='')
self.elapse = self.params.get("action_elapse", default='')
Expand Down Expand Up @@ -117,8 +116,8 @@ def test_ethtool(self):
ignore_status=True)
if ret.exit_status != 0:
self.fail("failed")
if not HostInfo.ping_check(self, self.iface, self.peer, '10000',
flood=True):
if not configure_network.ping_check(self.iface, self.peer,
'10000', flood=True):
self.fail("flood ping test failed")
if self.priv_test:
self.ethtool_toggle_priv_flags()
Expand Down Expand Up @@ -146,8 +145,8 @@ def ethtool_toggle_priv_flags(self):
priv_pass.append(priv_flag.rstrip())
else:
priv_fail.append(priv_flag.rstrip())
if not HostInfo.ping_check(self, self.iface,
self.peer, '500000', flood=True):
if not configure_network.ping_check(self.iface, self.peer,
'500000', flood=True):
self.fail("Ping failed oper = %s" % oper)
if priv_fail:
self.fail("Private flags could not be toggled: %s" %
Expand Down

0 comments on commit e3217b9

Please sign in to comment.