diff options
author | 2024-10-30 08:59:43 +0800 | |
---|---|---|
committer | 2024-10-31 19:21:36 -0700 | |
commit | d3774a4b21e98c336d71d67b7605d91f344524c9 (patch) | |
tree | 7498bea52295a5b3dfd7127e6c00dd68b079c7ec /tools | |
parent | selftests: netdevsim: add fib_notifications to Makefile (diff) | |
download | wireguard-linux-d3774a4b21e98c336d71d67b7605d91f344524c9.tar.xz wireguard-linux-d3774a4b21e98c336d71d67b7605d91f344524c9.zip |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/veth.sh | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/veth.sh b/tools/testing/selftests/net/veth.sh index 4f1edbafb946..6bb7dfaa30b6 100755 --- a/tools/testing/selftests/net/veth.sh +++ b/tools/testing/selftests/net/veth.sh @@ -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() { |