Commit eea4dfbe authored by maruel@chromium.org's avatar maruel@chromium.org

When the tree is closed, it's closed.

Convert the warning to error.

Review URL: http://codereview.chromium.org/1232007

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@42572 0039d316-1c4b-4281-b951-d872f2087c98
parent 5d63eb83
......@@ -352,8 +352,8 @@ def CheckTreeIsOpen(input_api, output_api, url, closed):
connection.close()
if input_api.re.match(closed, status):
long_text = status + '\n' + url
return [output_api.PresubmitPromptWarning('The tree is closed.',
long_text=long_text)]
return [output_api.PresubmitError('The tree is closed dude!',
long_text=long_text)]
except IOError:
pass
return []
......
......@@ -1430,7 +1430,7 @@ class CannedChecksUnittest(PresubmitTestsBase):
input_api, presubmit.OutputApi, url='url_to_closed', closed='0')
self.assertEquals(len(results), 1)
self.assertEquals(results[0].__class__,
presubmit.OutputApi.PresubmitPromptWarning)
presubmit.OutputApi.PresubmitError)
def testRunPythonUnitTestsNoTest(self):
input_api = self.MockInputApi(None, False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment