Skip to content

Commit dcf7646

Browse files
TrottMylesBorins
authored andcommitted
tools: fail tests if malformed status file
PR-URL: #16703 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d44adf1 commit dcf7646

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,9 +1287,7 @@ def ReadConfigurationInto(path, sections, defs):
12871287
if prefix_match:
12881288
prefix = SplitPath(prefix_match.group(1).strip())
12891289
continue
1290-
print "Malformed line: '%s'." % line
1291-
return False
1292-
return True
1290+
raise Exception("Malformed line: '%s'." % line)
12931291

12941292

12951293
# ---------------

0 commit comments

Comments
 (0)