aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_ct.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/diameter/test/diameter_ct.erl')
-rw-r--r--lib/diameter/test/diameter_ct.erl12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/diameter/test/diameter_ct.erl b/lib/diameter/test/diameter_ct.erl
index 6842ca03c5..f8ee3dc1d7 100644
--- a/lib/diameter/test/diameter_ct.erl
+++ b/lib/diameter/test/diameter_ct.erl
@@ -26,20 +26,16 @@
-export([run/1]).
%% ct:run_test/1 is currently documented as returning a list of test
-%% results ... but no. Instead it returns the phenomenally useful
-%% value 'ok' regardless of whether or not the suite in question has
-%% failed testcases.
+%% results ... but no. Instead it returns 'ok' regardless of whether
+%% or not the suite in question has failed testcases.
-run([Name]) ->
+run([Suite]) ->
Start = info(),
- ok = ct:run_test([{suite, suite(Name)},
+ ok = ct:run_test([{suite, Suite},
{logdir, "./log"},
{auto_compile, false}]),
info(Start , info()).
-suite(Name) ->
- list_to_atom("diameter_" ++ atom_to_list(Name) ++ "_SUITE").
-
info() ->
[{time, now()},
{process_count, erlang:system_info(process_count)}