aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_ct.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-09-12 17:09:27 +0200
committerAnders Svensson <[email protected]>2011-09-26 17:11:06 +0200
commit6708f4e2ee7e05eacd72780bd6ae38cd0944e81b (patch)
treee7f54979aa07c951d9d2f8ef130e111612da0b64 /lib/diameter/test/diameter_ct.erl
parente3902570caa368c759fdf3b19981991bf43b57ec (diff)
downloadotp-6708f4e2ee7e05eacd72780bd6ae38cd0944e81b.tar.gz
otp-6708f4e2ee7e05eacd72780bd6ae38cd0944e81b.tar.bz2
otp-6708f4e2ee7e05eacd72780bd6ae38cd0944e81b.zip
Minor diameter_ct simplification
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)}