selftest: net: fix typo in altname test

commit 1b704b27beb11ce147d64b21c914e57afbfb5656 upstream.

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: f95e6c9c46 ("selftest: net: add alternative names test")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Andrea Claudi 2021-09-11 16:14:18 +02:00 committed by Greg Kroah-Hartman
parent 88ed682408
commit 01d9358283

View File

@ -45,7 +45,7 @@ altnames_test()
check_err $? "Got unexpected long alternative name from link show JSON" check_err $? "Got unexpected long alternative name from link show JSON"
ip link property del $DUMMY_DEV altname $SHORT_NAME 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 ip -j -p link show $SHORT_NAME &>/dev/null
check_fail $? "Unexpected success while trying to do link show with deleted short alternative name" check_fail $? "Unexpected success while trying to do link show with deleted short alternative name"