aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_framework.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-16 14:55:43 +0200
committerSiri Hansen <[email protected]>2013-04-16 14:55:43 +0200
commitc954cca3a5aaada476c12dc80a4b0adcd3eb3a0d (patch)
treef13f9cf0334e35066cca8ff028f8edb4835fe990 /lib/common_test/src/ct_framework.erl
parenta0f5a03771e50e1f4a0722373e8823fc72aa5991 (diff)
downloadotp-c954cca3a5aaada476c12dc80a4b0adcd3eb3a0d.tar.gz
otp-c954cca3a5aaada476c12dc80a4b0adcd3eb3a0d.tar.bz2
otp-c954cca3a5aaada476c12dc80a4b0adcd3eb3a0d.zip
[common_test] Add link from red error notification to full error description
In test case log, the red error notification may sometimes be truncated. This commit adds a link from this printout to the end of the log where the full error description and stacktrace i written.
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r--lib/common_test/src/ct_framework.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index 3cbcccaf42..276f902b05 100644
--- a/lib/common_test/src/ct_framework.erl
+++ b/lib/common_test/src/ct_framework.erl
@@ -807,10 +807,14 @@ error_notification(Mod,Func,_Args,{Error,Loc}) ->
"- - - - - - - - - -~n",
io:format(user, lists:concat([Div,ErrFormat,Div,"~n"]),
ErrArgs),
+ Link =
+ "\n\n<a href=\"#end\">"
+ "Full error description and stacktrace"
+ "</a>",
ct_logs:tc_log(ct_error_notify,
?MAX_IMPORTANCE,
"CT Error Notification",
- ErrFormat, ErrArgs)
+ ErrFormat++Link, ErrArgs)
end,
case Loc of
[{?MODULE,error_in_suite}] ->