diff options
author | Andrea Claudi <aclaudi@redhat.com> | 2021-09-11 16:14:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-12 10:48:26 +0100 |
commit | 1b704b27beb11ce147d64b21c914e57afbfb5656 (patch) | |
tree | 384e70469db65eb1c733a996b480ffe3a2dcd307 /tools | |
parent | ce062a0adbfe933b1932235fdfd874c4c91d1bb0 (diff) | |
download | linux-1b704b27beb11ce147d64b21c914e57afbfb5656.tar.bz2 |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/altnames.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/altnames.sh b/tools/testing/selftests/net/altnames.sh index 4254ddc3f70b..1ef9e4159bba 100755 --- a/tools/testing/selftests/net/altnames.sh +++ b/tools/testing/selftests/net/altnames.sh @@ -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" |