mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
selftests/net: Fix ./ns-XXXXXX not cleanup
``` readonly STATS="$(mktemp -p /tmp ns-XXXXXX)" readonly BASE=`basename $STATS` ``` It could be a mistake to write to $BASE rather than $STATS, where $STATS is used to save the NSTAT_HISTORY and it will be cleaned up before exit. Although since we've been creating the wrong file this whole time and everything worked, it's fine to remove these 2 lines completely Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Link: https://patch.msgid.link/20241030005943.400225-1-lizhijian@fujitsu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
7f66456d77
commit
d3774a4b21
|
@ -46,8 +46,6 @@ create_ns() {
|
|||
ip -n $BASE$ns addr add dev veth$ns $BM_NET_V4$ns/24
|
||||
ip -n $BASE$ns addr add dev veth$ns $BM_NET_V6$ns/64 nodad
|
||||
done
|
||||
echo "#kernel" > $BASE
|
||||
chmod go-rw $BASE
|
||||
}
|
||||
|
||||
__chk_flag() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user