Commit e05d4882 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by Commit Bot

git cl tests: improve readability of test helper.

Shorten lines and remove useless stacktrace to make sure the actually
usefull exception fits on tandrii@'s screen :)

R=sergiyb@chromium.org

Change-Id: I387da6c70f72a122d64f7a044d201d72a858fc3f
Reviewed-on: https://chromium-review.googlesource.com/475811Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
parent fcc67b45
......@@ -611,16 +611,13 @@ class TestGitCl(TestCase):
raise
# Sadly, has_failed() returns True if this OR any other tests before this
# one have failed.
git_cl.logging.exception(
'\nIF YOU SEE THIS, READ BELOW, IT WILL SAVE YOUR TIME!\n'
git_cl.logging.error(
'!!!!!! IF YOU SEE THIS, READ BELOW, IT WILL SAVE YOUR TIME !!!!!\n'
'There are un-consumed self.calls after this test has finished.\n'
'If you don\'t know which test this is, run:\n'
' tests/git_cl_tests.py -v\n'
'\n'
'If you are already running just this single test, then **first** '
'fix the problem whose exception is emitted below by unittest '
'runner.\n'
'\n'
'If you are already running only this test, then **first** fix the '
'problem whose exception is emitted below by unittest runner.\n'
'Else, to be sure what\'s going on, run this test **alone** with \n'
' tests/git_cl_tests.py TestGitCl.<name>\n'
'and follow instructions above.\n' +
......
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