Skip to content

Commit dcf7646

Browse files
TrottMylesBorins
authored andcommitted
tools: fail tests if malformed status file
PR-URL: #16703 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
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)