Skip to content

Commit 992e09e

Browse files
committed
system-tests: Verbose cleanup of ports and namespaces.
Removal of ports and network namespaces can take a significant amount of time, and it is not clear if the test is stuck or actually doing something during that time. Add some logging to cleanup commands to see what is going on. Acked-by: Eelco Chaudron <[email protected]> Signed-off-by: Ilya Maximets <[email protected]>
1 parent a5b5fce commit 992e09e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/system-common-macros.at

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
#
33
# Delete namespaces from the running OS
44
m4_define([DEL_NAMESPACES],
5-
[m4_foreach([ns], [$@],
6-
[ip netns del ns
7-
])
8-
]
5+
[m4_foreach([ns], [$@], [echo removing namespace ns; ip netns del ns])]
96
)
107

118
# ADD_NAMESPACES(ns [, ns ... ])
@@ -72,7 +69,7 @@ m4_define([ADD_INT],
7269
#
7370
m4_define([ADD_VETH],
7471
[ AT_CHECK([ip link add $1 type veth peer name ovs-$1 || return 77])
75-
on_exit 'ip link del ovs-$1'
72+
on_exit 'echo removing interface ovs-$1; ip link del ovs-$1'
7673
CONFIGURE_VETH_OFFLOADS([$1])
7774
AT_CHECK([ip link set $1 netns $2])
7875
AT_CHECK([ip link set dev ovs-$1 up])

0 commit comments

Comments
 (0)