[LTP] [RFC PATCH v6 2/2] network/dhcp: Fix netns after removing kernel module
Petr Vorel
pvorel@suse.cz
Fri Jun 16 03:56:52 CEST 2017
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/network/dhcp/dhcp_lib.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/network/dhcp/dhcp_lib.sh b/testcases/network/dhcp/dhcp_lib.sh
index 85f9b88bf..eb502efbd 100755
--- a/testcases/network/dhcp/dhcp_lib.sh
+++ b/testcases/network/dhcp/dhcp_lib.sh
@@ -82,7 +82,7 @@ cleanup()
[ $veth_added ] && ip li del $iface0
if [ -z $veth_loaded ]; then
- lsmod | grep -q '^veth ' && rmmod veth
+ lsmod | grep -q '^veth ' && { rmmod veth; reset_ltp_netspace; }
fi
tst_rmdir
--
2.12.2
More information about the ltp
mailing list