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/475811
Reviewed-by: Sergiy Byelozyorov <sergiyb@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index 7b20a24..1876087 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -611,16 +611,13 @@
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' +