Skip to content

Commit

Permalink
[202211_SPC4] Support verifying the value of strings (and not just y/…
Browse files Browse the repository at this point in the history
…m/n settings)

Becuase of kpatch-inclusions having quotes around the string, but the
value from `scripts/config` having the quotes stripped, the comparison
fails due to one side having quotes but the other side not having
quotes.

This effectively adds support for setting string kconfigs in
kconfig-inclusion.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
  • Loading branch information
saiarcot895 authored and DavidZagury committed May 4, 2023
1 parent 9f9c0a0 commit 19581df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manage-config
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ if [ -e ${exclusion_file} -o -e ${inclusion_file} -o -e ${force_inclusion_file}
if [ ! -z "$opt" ] && [[ ! "$opt" =~ ^#.* ]]; then
n=${opt%=*}
v="${opt#*=}"
v="${v/#\"/}"
v="${v/%\"/}"
s=$(scripts/config --file ${CONFIG_FILE} -k --state $n)
if [ ! "$s" = "$v" ]; then
ret=2
Expand Down

0 comments on commit 19581df

Please sign in to comment.