aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/cth_surefire.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-05-15 10:15:12 +0200
committerLukas Larsson <[email protected]>2012-05-15 10:15:12 +0200
commit8be5d558a7e9a0a949f2a38c0c531ea3e9c9f45a (patch)
tree768ab4348f0fbea751b58bcdff79841d81e60aab /lib/common_test/src/cth_surefire.erl
parent7037b6524a3221a02bc8f28c71151c4c5cb335a2 (diff)
downloadotp-8be5d558a7e9a0a949f2a38c0c531ea3e9c9f45a.tar.gz
otp-8be5d558a7e9a0a949f2a38c0c531ea3e9c9f45a.tar.bz2
otp-8be5d558a7e9a0a949f2a38c0c531ea3e9c9f45a.zip
Allow non configlist returns from other cths
Diffstat (limited to 'lib/common_test/src/cth_surefire.erl')
-rw-r--r--lib/common_test/src/cth_surefire.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common_test/src/cth_surefire.erl b/lib/common_test/src/cth_surefire.erl
index cb74bf0d81..7bb6d65a9a 100644
--- a/lib/common_test/src/cth_surefire.erl
+++ b/lib/common_test/src/cth_surefire.erl
@@ -97,6 +97,8 @@ on_tc_skip(_Tc, Res, State) ->
{skipped,lists:flatten(io_lib:format("~p",[Res]))} },
State#state{ test_cases = [NewTC | tl(TCs)]}.
+init_tc(State, Config) when is_list(Config) == false ->
+ State#state{ timer = now(), tc_log = "" };
init_tc(State, Config) ->
State#state{ timer = now(),
tc_log = proplists:get_value(tc_logfile, Config)}.