]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: kunit_config: Fix parsing of CONFIG options with space
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 7 Jun 2020 21:57:15 +0000 (23:57 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 26 Jun 2020 20:27:35 +0000 (14:27 -0600)
commit34e4d887aaa81d77f37a090cdaee64a1dea50d36
tree7f2e8a489df5bc8df5deb22da8908ab340269b6d
parente86d80f3f3da4d1072ca810bbe97a8ef4bd674b0
kunit: kunit_config: Fix parsing of CONFIG options with space

Commit 53d625a8ecf6 ("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: 53d625a8ecf6 ("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>
tools/testing/kunit/kunit_config.py