Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1668312pxb; Thu, 16 Sep 2021 12:29:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSkjYaRtx/aai0Id9fbNPK25noD+6gni0Vs9xwTffRbwkUe2/xTIiw26EYvhswl2q2BHPT X-Received: by 2002:a17:906:1856:: with SMTP id w22mr8372794eje.393.1631820582716; Thu, 16 Sep 2021 12:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631820582; cv=none; d=google.com; s=arc-20160816; b=PWKAbcEgdgfQYN/935kUHWrngAdtbsCq3B9j8bock1wxMMsSeo7VsDeU1EQl3D6vkW W/1CKMFc4dy++iwF5z6S7Y35sNBR5R5uNUZU53saG5A2uRN2SJhnglM7tBJxwYZF5rtt ZMFT0p2Ve/Z4ZpMA3wrvXidYfZ2fipsufjwTL6tccxuhvu7Jg2HEX9mkEW8eFssvgDLk UCyMvwKR9uiAP683QKpc8Gpjm2airyMTdCUvjNtgKCGY5PLj67hW5UdOwous9Utb3pxP OeVdfjxCqaguXTC++Fm7Vc5214Re0X5QBZxxcsLpoEw548nn4/cr1uEovLfxJxRXn1cj VLpg== 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=Hpq4kQQp/V+jLzmtc87i8zqq5qF3rmT+XnnrA7EPb1k=; b=OTP4b859kJx4MDlGkjWM8RNbeJfMKnZeM4yvs+pGRJ3/DuFPX5EJe7xiLomNSgyh7X zi2nO65QerHJTRs1otpbEp85JwM/f+bBHqd9i2hPHS2qSlgXfPIkUf9h9pwRyKYyOWF0 5U7IsPnwHNpSwvxwyfaAJuA/4C/lhxIy6wt2kCarm24vXdGBYbJBF/Jk9ioU0PWG+gP2 c6VGIlWc6rn3sNbEZ6kALml6L/dR3Gesd7AEjPzgJCeXpxZ01fyG1z0LH4Yzs/5LCfGM 6xeqKg7sd3LtJ1s7BAsMuWm5JpP3b+SQOvDrCbXB+8r+cnsj7gkNazZj3ZCk2ebZk2kk xeuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IHM0ZYK0; 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 r5si4639922edy.450.2021.09.16.12.29.18; Thu, 16 Sep 2021 12:29:42 -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=IHM0ZYK0; 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 S240584AbhIPQFj (ORCPT + 99 others); Thu, 16 Sep 2021 12:05:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:44584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240533AbhIPQF3 (ORCPT ); Thu, 16 Sep 2021 12:05:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E4DE461250; Thu, 16 Sep 2021 16:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808248; bh=9iClfcn2FvwaNTaQw0Bk6+vBHtIgyJFO+KgfvpvKnfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IHM0ZYK0VFfD2hEzfeTOHxHVKderwdgdFaN4IxALXmMoeRGdHRiZd2zPxUO6oToCI XshWFx7TwsLWTMEepJLpTQ/fdJCAD5c1s6CkjqJRj9hn8Lgj+kmN8pOy5s9xvV7grN ZaprO3LSz6LorPJwWQGVDtwYu0VgpDjvbGwLO5us= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Tzvetomir Stoyanov" , Tom Zanussi , Shuah Khan , Shuah Khan , linux-kselftest@vger.kernel.org, Masami Hiramatsu , "Steven Rostedt (VMware)" Subject: [PATCH 5.10 016/306] selftests/ftrace: Fix requirement check of README file Date: Thu, 16 Sep 2021 17:56:01 +0200 Message-Id: <20210916155754.482921785@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Steven Rostedt (VMware) commit 210f9df02611cbe641ced3239122b270fd907d86 upstream. The selftest for ftrace checks some features by checking if the README has text that states the feature is supported by that kernel. Unfortunately, this check gives false positives because it many not be checked if there's spaces in the string to check. This is due to the compare between the required variable with the ":README" string stripped, because neither has quotes around them. Link: https://lkml.kernel.org/r/20210820204742.087177341@goodmis.org Cc: "Tzvetomir Stoyanov" Cc: Tom Zanussi Cc: Shuah Khan Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: stable@vger.kernel.org Fixes: 1b8eec510ba64 ("selftests/ftrace: Support ":README" suffix for requires") Acked-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/ftrace/test.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/ftrace/test.d/functions +++ b/tools/testing/selftests/ftrace/test.d/functions @@ -115,7 +115,7 @@ check_requires() { # Check required file echo "Required tracer $t is not configured." exit_unsupported fi - elif [ $r != $i ]; then + elif [ "$r" != "$i" ]; then if ! grep -Fq "$r" README ; then echo "Required feature pattern \"$r\" is not in README." exit_unsupported