From e4788cde0abdcbdcf7743b26f67b6c811861e0a8 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 PR-URL: https://github.com/nodejs/node/pull/16703 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Anatoli Papirovski Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Refael Ackermann Reviewed-By: Luigi Pinca --- 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) # ---------------