Commit 1b704b27 authored by Andrea Claudi's avatar Andrea Claudi Committed by David S. Miller

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: f95e6c9c ("selftest: net: add alternative names test")
Signed-off-by: default avatarAndrea Claudi <aclaudi@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ce062a0a
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment