aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_framework.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-09-20 14:06:43 +0200
committerBjörn Gustavsson <[email protected]>2012-09-20 14:06:43 +0200
commitd4927656793384fcb7a3a70a05e4e94e9b57f6ce (patch)
treebd2d628426e5bd492fdc866b9576c46902a17e96 /lib/common_test/src/ct_framework.erl
parent95d4c612f2308d86e926c97b08ea2751d626a6ae (diff)
parent1a2b1519b290bcf9842fcad6152ab1ee7edb1e14 (diff)
downloadotp-d4927656793384fcb7a3a70a05e4e94e9b57f6ce.tar.gz
otp-d4927656793384fcb7a3a70a05e4e94e9b57f6ce.tar.bz2
otp-d4927656793384fcb7a3a70a05e4e94e9b57f6ce.zip
Merge branch 'bjorn/ct-fix-silent-death/OTP-9769'
* bjorn/ct-fix-silent-death/OTP-9769: Teach test_server to report severe errors to common_test test_server_ctrl: Present "cannot create log dir" errors more neatly test_server_ctrl: Don't die in stop_extra_tools/1
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r--lib/common_test/src/ct_framework.erl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index 4d47731239..bec3368869 100644
--- a/lib/common_test/src/ct_framework.erl
+++ b/lib/common_test/src/ct_framework.erl
@@ -1529,6 +1529,12 @@ report(What,Data) ->
end;
tests_done ->
ok;
+ severe_error ->
+ ct_event:sync_notify(#event{name=What,
+ node=node(),
+ data=Data}),
+ ct_util:set_testdata({What,Data}),
+ ok;
tc_start ->
%% Data = {{Suite,Func},LogFileName}
ct_event:sync_notify(#event{name=tc_logfile,