diff options
author | Anders Svensson <[email protected]> | 2011-12-14 14:49:31 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-12-16 18:25:30 +0100 |
commit | 40c11394f000b4bad36e45ef2c3d45882f39ac6e (patch) | |
tree | 48a7292e95cfa1059a6d0248d77a3c0c35a552c3 /lib/diameter/test/diameter_traffic_SUITE.erl | |
parent | 085d179fd8c192d42415e5df73bc3eb8a6d912d2 (diff) | |
download | otp-40c11394f000b4bad36e45ef2c3d45882f39ac6e.tar.gz otp-40c11394f000b4bad36e45ef2c3d45882f39ac6e.tar.bz2 otp-40c11394f000b4bad36e45ef2c3d45882f39ac6e.zip |
Use new syntax for specifying ct group properties
No longer have to duplicate groups for sequential and parallel runs.
Diffstat (limited to 'lib/diameter/test/diameter_traffic_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_traffic_SUITE.erl | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/lib/diameter/test/diameter_traffic_SUITE.erl b/lib/diameter/test/diameter_traffic_SUITE.erl index bc5ca416c2..6eed8d3b5d 100644 --- a/lib/diameter/test/diameter_traffic_SUITE.erl +++ b/lib/diameter/test/diameter_traffic_SUITE.erl @@ -162,27 +162,16 @@ suite() -> [{timetrap, {seconds, 10}}]. all() -> - [start, start_services, add_transports, result_codes - | [{group, N} || {N, _, _} <- groups()]] + [start, start_services, add_transports, result_codes] + ++ [{group, E, P} || E <- ?ENCODINGS, P <- [[], [parallel]]] ++ [remove_transports, stop_services, stop]. groups() -> Ts = tc(), - [{grp(E,P), P, Ts} || E <- ?ENCODINGS, P <- [[], [parallel]]]. - -grp(E, []) -> - E; -grp(E, [parallel]) -> - ?P(E). + [{E, [], Ts} || E <- ?ENCODINGS]. init_per_group(Name, Config) -> - E = case ?L(Name) of - "p_" ++ Rest -> - ?A(Rest); - _ -> - Name - end, - [{encode, E} | Config]. + [{encode, Name} | Config]. end_per_group(_, _) -> ok. |