]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftest: net: fix typo in altname test
authorAndrea Claudi <aclaudi@redhat.com>
Sat, 11 Sep 2021 14:14:18 +0000 (16:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Sep 2021 09:48:26 +0000 (10:48 +0100)
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: 998a5aa768c6 ("selftest: net: add alternative names test")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/altnames.sh

index 4254ddc3f70b560a85b64edcd9512eb7fb4bf621..1ef9e4159bba8e83b796f02b37c2b547d03db0f9 100755 (executable)
@@ -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"