Skip to content

Commit 4f518a4

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 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)