Skip to content

Commit 3f37d14

Browse files
rikardfalkebornshuahkh
authored andcommitted
kunit: kunit_config: Fix parsing of CONFIG options with space
Commit 8b59cd8 ("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: 8b59cd8 ("kbuild: ensure full rebuild when the compiler is updated") Signed-off-by: Rikard Falkeborn <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 4877846 commit 3f37d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/kunit/kunit_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import re
1111

1212
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+|".*")$'
1414

1515
KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value'])
1616

0 commit comments

Comments
 (0)