Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kunit: kunit_config: Fix parsing of CONFIG options with space

Commit 8b59cd81dc5e ("kbuild: ensure full rebuild when the compiler is
updated") introduced a new CONFIG option CONFIG_CC_VERSION_TEXT. On my
system, this is set to "gcc (GCC) 10.1.0" which breaks KUnit config
parsing which did not like the spaces in the string.

Fix this by updating the regex to allow strings containing spaces.

Fixes: 8b59cd81dc5e ("kbuild: ensure full rebuild when the compiler is updated")
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Rikard Falkeborn and committed by
Shuah Khan
3f37d14b 48778464

+1 -1
+1 -1
tools/testing/kunit/kunit_config.py
··· 10 10 import re 11 11 12 12 CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$' 13 - CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+)$' 13 + CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$' 14 14 15 15 KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value']) 16 16