Skip to content

Commit 2fb5348

Browse files
authored
Merge pull request #867 from nathanchance/fix-check-logs-for-empty-strings
scripts/check-logs.py: Treat empty string values as 'n' for config check
2 parents bb0a270 + dd2024c commit 2fb5348

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/check-logs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ def check_built_config(build):
149149
state = None
150150
if '=' in line:
151151
name, state = line.split('=', 1)
152+
# Treat empty string values as 'n', as TuxSuite only supports y|m|n
153+
# for overriding configuration options, so 'n' may be used to reset
154+
# a value
155+
if state == '""':
156+
state = 'n'
152157
elif line.startswith("# CONFIG_"):
153158
name, state = line.split(" ", 2)[1:]
154159
if state != "is not set":

0 commit comments

Comments
 (0)