| Index: third_party/closure_compiler/compiler_customization_test.py
|
| diff --git a/third_party/closure_compiler/compiler_customization_test.py b/third_party/closure_compiler/compiler_customization_test.py
|
| index ead5b2e40741f580607fdbaa44a2becf7807392e..950059c3f0f99bd2de8d734f6e26c5565231b43a 100755
|
| --- a/third_party/closure_compiler/compiler_customization_test.py
|
| +++ b/third_party/closure_compiler/compiler_customization_test.py
|
| @@ -36,17 +36,18 @@
|
| return self._checker.check(file_path)
|
|
|
| def _runCheckerTestExpectError(self, source_code, expected_error):
|
| - _, stderr = self._runChecker(source_code)
|
| -
|
| - self.assertTrue(expected_error in stderr,
|
| + _, output = self._runChecker(source_code)
|
| +
|
| + self.assertTrue(expected_error in output,
|
| msg="Expected chunk: \n%s\n\nOutput:\n%s\n" % (
|
| - expected_error, stderr))
|
| + expected_error, output))
|
|
|
| def _runCheckerTestExpectSuccess(self, source_code):
|
| - found_errors, stderr = self._runChecker(source_code)
|
| -
|
| - self.assertFalse(found_errors,
|
| - msg="Expected success, but got failure\n\nOutput:\n%s\n" % stderr)
|
| + return_code, output = self._runChecker(source_code)
|
| +
|
| + self.assertTrue(return_code == 0,
|
| + msg="Expected success, got return code %d\n\nOutput:\n%s\n" % (
|
| + return_code, output))
|
|
|
| def testGetInstance(self):
|
| self._runCheckerTestExpectError("""
|
|
|