summaryrefslogtreecommitdiff
path: root/tools/testing/kunit/kunit_config.py
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-06-07 23:57:15 +0200
committerShuah Khan <skhan@linuxfoundation.org>2020-06-26 14:27:35 -0600
commit3f37d14b8a3152441f36b6bc74000996679f0998 (patch)
tree7f2e8a489df5bc8df5deb22da8908ab340269b6d /tools/testing/kunit/kunit_config.py
parent48778464bb7d346b47157d21ffde2af6b2d39110 (diff)
downloadlwn-3f37d14b8a3152441f36b6bc74000996679f0998.tar.gz
lwn-3f37d14b8a3152441f36b6bc74000996679f0998.zip
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>
Diffstat (limited to 'tools/testing/kunit/kunit_config.py')
-rw-r--r--tools/testing/kunit/kunit_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/kunit/kunit_config.py b/tools/testing/kunit/kunit_config.py
index e75063d603b5..02ffc3a3e5dc 100644
--- a/tools/testing/kunit/kunit_config.py
+++ b/tools/testing/kunit/kunit_config.py
@@ -10,7 +10,7 @@ import collections
import re
CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$'
-CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+)$'
+CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$'
KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value'])