Skip to contentSkip to conversation

selftest: net: fix typo in altname test

PATCH Applied Andrea Claudi 2 participants 2 messages Sep 11, 2021 – Sep 12, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftest: net: fix typo in altname test

If altname deletion of the short alternative name fails, the error message printed is: "Failed to add short alternative name". This is obviously a typo, as we are testing altname deletion.

Fix this using a proper error message.

Fixes f95e6c9c4617 ("selftest: net: add alternative names test")
---
 tools/testing/selftests/net/altnames.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/altnames.sh +1 -1
index 4254ddc3f70b..1ef9e4159bba 100755
@@ -45,7 +45,7 @@ altnames_test()
 	check_err $? "Got unexpected long alternative name from link show JSON"
 
 	ip link property del $DUMMY_DEV altname $SHORT_NAME
-	check_err $? "Failed to add short alternative name"
+	check_err $? "Failed to delete short alternative name"
 
 	ip -j -p link show $SHORT_NAME &>/dev/null
 	check_fail $? "Unexpected success while trying to do link show with deleted short alternative name"
Signature · 1 line
2.31.1
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 10 lines · On Sat, 11 Sep 2021 16:14:18 +0200 you wrote:

If altname deletion of the short alternative name fails, the error message printed is: "Failed to add short alternative name". This is obviously a typo, as we are testing altname deletion.

Fix this using a proper error message.

Fixes f95e6c9c4617 ("selftest: net: add alternative names test")

[...]

Here is the summary with links:
- [net] selftest: net: fix typo in altname test

    https://git.kernel.org/netdev/net/c/1b704b27beb1

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html