diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2022-12-14 16:37:27 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-01-03 17:53:31 -0800 |
commit | ac71c3dd11e809cb732ae34efa6d9fc29d4664e1 (patch) | |
tree | 810710a9ae5aabbafa56cb5005e89ec25b439a3a /tools/testing/selftests/rcutorture | |
parent | eeb4dd9e530de52fdf43283c50f371f0771725c9 (diff) | |
download | linux-stable-ac71c3dd11e809cb732ae34efa6d9fc29d4664e1.tar.gz linux-stable-ac71c3dd11e809cb732ae34efa6d9fc29d4664e1.tar.bz2 linux-stable-ac71c3dd11e809cb732ae34efa6d9fc29d4664e1.zip |
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>
Diffstat (limited to 'tools/testing/selftests/rcutorture')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/configcheck.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/configcheck.sh b/tools/testing/selftests/rcutorture/bin/configcheck.sh index 83fac1852ab2..b92dfeb7fbbf 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"'"; |