Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Andrea Claudi and committed by
David S. Miller
1b704b27 ce062a0a

+1 -1
+1 -1
tools/testing/selftests/net/altnames.sh
··· 45 45 check_err $? "Got unexpected long alternative name from link show JSON" 46 46 47 47 ip link property del $DUMMY_DEV altname $SHORT_NAME 48 - check_err $? "Failed to add short alternative name" 48 + check_err $? "Failed to delete short alternative name" 49 49 50 50 ip -j -p link show $SHORT_NAME &>/dev/null 51 51 check_fail $? "Unexpected success while trying to do link show with deleted short alternative name"