Skip to content

Commit

Permalink
tools: fail tests if malformed status file
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and MylesBorins committed Dec 11, 2017
1 parent 4a9c75a commit 4f518a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,9 +1349,7 @@ def ReadConfigurationInto(path, sections, defs):
if prefix_match:
prefix = SplitPath(prefix_match.group(1).strip())
continue
print "Malformed line: '%s'." % line
return False
return True
raise Exception("Malformed line: '%s'." % line)


# ---------------
Expand Down

0 comments on commit 4f518a4

Please sign in to comment.