Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp181572rwl; Wed, 4 Jan 2023 17:24:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXtjRQ7CTF0eD/dGHvvkKqUxfZXjWhHqsEtbIzsCI85xA2HM27JDGJENTwCQhtqRufp9xPyy X-Received: by 2002:a17:907:a641:b0:7c1:4e8f:df2f with SMTP id vu1-20020a170907a64100b007c14e8fdf2fmr48378021ejc.17.1672881852921; Wed, 04 Jan 2023 17:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672881852; cv=none; d=google.com; s=arc-20160816; b=IuRdXgduwHRBsTC+mTj4PlI1yk2dohR1E9NpV+BfM3aBV2GR4OJbOP+SHkyeYMcR9H 0BMqAPgUKiEiOjPLk4155V7friHG/1QdOe9myDYIdc/eCVLEdPYeZO8RaJAHnjjbb+nl SOnZABI6rtX39DLyf6ZwVn7GXTXYGC59vYDjwX/E2n2sd2atx1WA6+v7/fpKGDorLbjC 4rcjxGnksPOOBlEevLlMm5F6Dr8wpaUKP0oHENdUuh8jkWfRO+AVm9cbkA9anQX59tht 0NOzMkmQTfGU5v9tU6MxkfAQ7Psb8bDOnlS6PmfoBWWalR+fW/JWQ1c2rjjgCKnj09eD yGyw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j1W8nZHOVlF/Ash/JzJaGB8H3PNtz68n8WE6JFNLxKA=; b=WORFhd1RhiwGd3MV9sVObdtks11A2G5EBAFlPSSzFOHGpqjs3iCqNFTolTsEElqDAh UoxEjhYQDyP2TkgVQj3t+FivQ/ywoF5xmAtGsrJcWeRQqnmjrbdDTD8WmcZGZB3G7vE9 u38+x9g8AvgpLNyhSoH25jvcpusIqJzDj6ZTCYKZFCaYAbWX9V6AS9Qw0i82BolJMGk8 5WTrJayPaBsEvmu0WTN15iShkS1HOs+8y2HfoYMDM0pUhezoJKz+hjPiAfoMEPrvdi1L uZPKd0RaDffv9Ee3yrrZAvTpd7H0+d+bi1c0bw3+SjpDlN0OosGwnwbpUS3AteVOBt8/ 8aBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ow9MundN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a17090658c400b0084c7b099652si21934538ejs.567.2023.01.04.17.23.59; Wed, 04 Jan 2023 17:24:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ow9MundN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229816AbjAEAwU (ORCPT + 56 others); Wed, 4 Jan 2023 19:52:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjAEAwA (ORCPT ); Wed, 4 Jan 2023 19:52:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD004544C3; Wed, 4 Jan 2023 16:46:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4616861890; Thu, 5 Jan 2023 00:46:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5455C433EF; Thu, 5 Jan 2023 00:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672879615; bh=G9iXV2wVbhOZbCfZMGnwzoNe/h9I0GEx2kSS1ZeTvUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ow9MundN2/lILLz2oSpNKiNUXSdqapyFA+EwxubE6Vy5Dw2+gLM6Hjjvjd1PAjrrU fJDGWAXzw9tGXM8gr94auGGEofcwi5GmVEuy1IjCDOJCpjjez1Q71L1s7UoHmdr9Lr UNZzsliOyazP328TukuEZ0jmCK0FvjIYSyuBeYmK0lm4nLT/dfRcNd+Va55qHPkNmQ q+vD7f/ql8fY9ZcqakmQeemgAG09W4sVhH1kxv365LtAXDgr1wtYcMlALz/7bnjex+ KdeIeMd1PWSa8vtB5li2/CHBffifSdXlqg04R+AzYTWjB3O8Jy0zpTkzEdO3j6dD8d bLjNz5QlwtEtA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 604EA5C08E5; Wed, 4 Jan 2023 16:46:55 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 3/4] torture: Permit double-quoted-string Kconfig options Date: Wed, 4 Jan 2023 16:46:51 -0800 Message-Id: <20230105004652.1771676-3-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20230105004646.GA1771551@paulmck-ThinkPad-P17-Gen-1> References: <20230105004646.GA1771551@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the presence of any quoted-string Kconfig option in the scenario files or the CFcommon file (aside from the special-cased CONFIG_INITRAMFS_SOURCE option) will result in an "improperly set" diagnostic. This commit updates configcheck.sh to strip double quotes in order to permit string-valued Kconfig options to be handled correctly. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/configcheck.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/configcheck.sh b/tools/testing/selftests/rcutorture/bin/configcheck.sh index 83fac1852ab23..b92dfeb7fbbfe 100755 --- a/tools/testing/selftests/rcutorture/bin/configcheck.sh +++ b/tools/testing/selftests/rcutorture/bin/configcheck.sh @@ -10,10 +10,9 @@ T="`mktemp -d ${TMPDIR-/tmp}/configcheck.sh.XXXXXX`" trap 'rm -rf $T' 0 -cat $1 > $T/.config +sed -e 's/"//g' < $1 > $T/.config -cat $2 | sed -e 's/\(.*\)=n/# \1 is not set/' -e 's/^#CHECK#//' | -grep -v '^CONFIG_INITRAMFS_SOURCE' | +sed -e 's/"//g' -e 's/\(.*\)=n/# \1 is not set/' -e 's/^#CHECK#//' < $2 | awk ' { print "if grep -q \"" $0 "\" < '"$T/.config"'"; -- 2.31.1.189.g2e36527f23