Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py

Issue 2800853003: webkitpy: Unify the exit status codes. (Closed)
Patch Set: webkitpy: Unify the exit status codes. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py
index e9754049ee94a6b4d70c9c8b8be89ee421b3c4a9..b03f7dde7a4ccbc9cceb09ec2f1ee837210c0a6d 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py
@@ -30,6 +30,7 @@ import StringIO
import optparse
import unittest
+from webkitpy.common import exit_codes
from webkitpy.common.host_mock import MockHost
from webkitpy.layout_tests import lint_test_expectations
@@ -216,11 +217,11 @@ class MainTest(unittest.TestCase):
lint_test_expectations.lint = interrupting_lint
res = lint_test_expectations.main([], self.stdout, self.stderr)
- self.assertEqual(res, lint_test_expectations.INTERRUPTED_EXIT_STATUS)
+ self.assertEqual(res, exit_codes.INTERRUPTED_EXIT_STATUS)
def test_exception(self):
def exception_raising_lint(host, options):
assert False
lint_test_expectations.lint = exception_raising_lint
res = lint_test_expectations.main([], self.stdout, self.stderr)
- self.assertEqual(res, lint_test_expectations.EXCEPTIONAL_EXIT_STATUS)
+ self.assertEqual(res, exit_codes.EXCEPTIONAL_EXIT_STATUS)

Powered by Google App Engine
This is Rietveld 408576698