Removal of some kernel modules can break the testing environment e.g. the bridge driver in virtual setup where dom0 is acting as one of the slaves. This patch removes the code that unloads netdevice's kernel module.
Signed-off-by: Jan Tluka jtluka@redhat.com --- lnst/Slave/NetConfigDevice.py | 3 --- 1 file changed, 3 deletions(-)
diff --git a/lnst/Slave/NetConfigDevice.py b/lnst/Slave/NetConfigDevice.py index 53e89b2..0c71fc7 100644 --- a/lnst/Slave/NetConfigDevice.py +++ b/lnst/Slave/NetConfigDevice.py @@ -72,9 +72,6 @@ class NetConfigDeviceGeneric: def type_cleanup(self): if self._cleanupcmd: exec_cmd(self._cleanupcmd, die_on_err=False) - if self._modulename: - kmod_in_use(self._modulename, 300) - exec_cmd("modprobe -q -r %s" % self._modulename, die_on_err=False)
class NetConfigDeviceEth(NetConfigDeviceGeneric): def configure(self):
lnst-developers@lists.fedorahosted.org