Skip to content

Commit ac71c3d

Browse files
committed
torture: Permit double-quoted-string Kconfig options
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 <paulmck@kernel.org>
1 parent eeb4dd9 commit ac71c3d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tools/testing/selftests/rcutorture/bin/configcheck.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
T="`mktemp -d ${TMPDIR-/tmp}/configcheck.sh.XXXXXX`"
1111
trap 'rm -rf $T' 0
1212

13-
cat $1 > $T/.config
13+
sed -e 's/"//g' < $1 > $T/.config
1414

15-
cat $2 | sed -e 's/\(.*\)=n/# \1 is not set/' -e 's/^#CHECK#//' |
16-
grep -v '^CONFIG_INITRAMFS_SOURCE' |
15+
sed -e 's/"//g' -e 's/\(.*\)=n/# \1 is not set/' -e 's/^#CHECK#//' < $2 |
1716
awk '
1817
{
1918
print "if grep -q \"" $0 "\" < '"$T/.config"'";

0 commit comments

Comments
 (0)