Skip to content

Commit 4f518a4

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 4a9c75a commit 4f518a4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/test.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1349,9 +1349,7 @@ def ReadConfigurationInto(path, sections, defs):
13491349
if prefix_match:
13501350
prefix = SplitPath(prefix_match.group(1).strip())
13511351
continue
1352-
print "Malformed line: '%s'." % line
1353-
return False
1354-
return True
1352+
raise Exception("Malformed line: '%s'." % line)
13551353

13561354

13571355
# ---------------

0 commit comments

Comments
 (0)