colors/xfstests.py: Fix splitting kernel PREEMPT line

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Anna Schumaker 2022-05-25 15:05:55 -04:00
parent 061d076ee9
commit 4025aaa0bd
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ for line in sys.stdin:
if line == "\n":
print_config()
elif re.match("^[A-Z_]+[ ]+-- .*?\n", line):
if match := re.match("(^PLATFORM(.*?)PREEMPT)(.*?\n)", line):
if match := re.match("(^PLATFORM(.*?)PREEMPT.*?) (.*?\n)", line):
add_config(match.group(1))
line = f"COMPILED -- {match.group(3)}"
add_config(line)