From 2fea598dac8f14a6ec253784089131e28207a619 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 2 Nov 2017 22:12:06 -0700 Subject: [PATCH] tools: fail tests if malformed status file --- tools/test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/test.py b/tools/test.py index 48d4a1a1eaa2ae..4cb0bd631dcc23 100755 --- a/tools/test.py +++ b/tools/test.py @@ -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) # ---------------