Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353664pxb; Mon, 20 Sep 2021 19:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjBKuvRmKV/6Pi+yERULMt0QVu4Pjpx2/QwpniZW1NMrvfp0TeZ5PmTtudzwRTVrNTSbbq X-Received: by 2002:a92:6e0e:: with SMTP id j14mr18735315ilc.190.1632192734879; Mon, 20 Sep 2021 19:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192734; cv=none; d=google.com; s=arc-20160816; b=d4XwHxthC7Qr3tn/9UzKX8Lri+vSFBMhwiJuVWbpjI6tJTE04HaUbIuVzlbPcaDcwL Rgxv4b0JApZjODdOph8rub+G2BEIO2Lk4JLKZQQr66IHY9wpOf7QzuMU3UbDHgxtQqWC pmGWNOMtJ4SjjxVt/eYyf4OJSIRiN+CzQv6BV+BEEvJ+D7FexyHHnP1dpIlqc0PfU4O4 TjBiKHu0lYy9MO2rZvq73PwTGeVMn1fqa62vYtPbdCvm/TD6tYH0trMVmWt1eooIO3hh nIBwoxybKMZffqtjqBtXgpp2TC7EU8Wn0j6OCnBdKI40jDtfxd4qld77/3kcqeScjaJ7 eM8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z/BXhwg+qElRky3aTYNQVF3EmIQpPWoMd6smoUnoFT8=; b=kdYG1UCe775unlznUmIcm19YgQ5iwz3anuISfNRkRdyKrnv5U/9/53XtL890BqeAnT hckXQvqlxXDT3KiPtYANBXEFWhEBc4AhP+0XcI0FGHTWzEyji8IV/kkgp34vnD1PICtQ J3ZbUIEgSODGZqfZsaXbqUg266fJmXBXB7v/FXNJRQ8btjiAUgEp1bk0VRwNXWxEr4qr Be+1LgmBXCHddo82Cj0c7oKSosq5rYgXYT/NLGqrnXiQ+a5RY8ClQxKdsB3jlZo5alYB ga5cSy0ujgjl6CuFxj99EhnWYwB8k08lK2igvG2DqCGNjY4Lmra5FukgQgZTfMTsBRFZ taEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JVKBJw9R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 205si5227601ioc.95.2021.09.20.19.52.04; Mon, 20 Sep 2021 19:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JVKBJw9R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354167AbhITSrf (ORCPT + 99 others); Mon, 20 Sep 2021 14:47:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:56444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383235AbhITSoR (ORCPT ); Mon, 20 Sep 2021 14:44:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0448663352; Mon, 20 Sep 2021 17:32:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159146; bh=++P4j04yCqS3g1hj7do2i9wlBMgZSdq1e4y6ILLc2xA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JVKBJw9RJ6AWSwJuy9kR1W7L88wU9o+EnKe5dw9/WePKRhFPGnCPE1QeQ4bPdRU6c ytKcJt0U505ltfddRbl2X5vuCrGO2fJD/hVjVM60v9FgwbnMLkWR19g7L8Cd0eiuTj gK894XWCg0nfEYcR86VrGeomrleRkIyK7vGmFqZ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrea Claudi , "David S. Miller" Subject: [PATCH 5.14 065/168] selftest: net: fix typo in altname test Date: Mon, 20 Sep 2021 18:43:23 +0200 Message-Id: <20210920163923.775059056@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrea Claudi 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: f95e6c9c4617 ("selftest: net: add alternative names test") Signed-off-by: Andrea Claudi Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/net/altnames.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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"