diff options
author | Peter Andersson <[email protected]> | 2014-02-11 17:21:35 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2014-02-11 17:21:35 +0100 |
commit | 0ae290cce8a3e54458efa1b212f154e6473b0288 (patch) | |
tree | 38fa3a7663d6fafce3f6c338a21a26e541edd187 /lib | |
parent | c7174e89688d449a79b2180e61f8003ba0e731fd (diff) | |
download | otp-0ae290cce8a3e54458efa1b212f154e6473b0288.tar.gz otp-0ae290cce8a3e54458efa1b212f154e6473b0288.tar.bz2 otp-0ae290cce8a3e54458efa1b212f154e6473b0288.zip |
Fix problem with verification for parallel groups in ct_telnet_SUITE
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common_test/test/ct_telnet_SUITE.erl | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/lib/common_test/test/ct_telnet_SUITE.erl b/lib/common_test/test/ct_telnet_SUITE.erl index 25debf09d4..acce4eca14 100644 --- a/lib/common_test/test/ct_telnet_SUITE.erl +++ b/lib/common_test/test/ct_telnet_SUITE.erl @@ -215,23 +215,18 @@ all_cases(Suite,Config) -> fun({group,G}) -> {value,{G,Props,GTCs}} = lists:keysearch(G,1,Suite:groups()), - GTCs1 = case lists:member(parallel,Props) of - true -> - %%! TEMPORARY WORKAROUND FOR PROBLEM - %%! WITH ct_test_support NOT HANDLING - %%! VERIFICATION OF PARALLEL GROUPS - %%! CORRECTLY! - []; - false -> - [[{?eh,tc_start,{Suite,GTC}}, - {?eh,tc_done,{Suite,GTC,ok}}] || - GTC <- GTCs] - end, - [{?eh,tc_start,{Suite,{init_per_group,G,Props}}}, - {?eh,tc_done,{Suite,{init_per_group,G,Props},ok}} | - GTCs1] ++ - [{?eh,tc_start,{Suite,{end_per_group,G,Props}}}, - {?eh,tc_done,{Suite,{end_per_group,G,Props},ok}}]; + GTCs1 = [[{?eh,tc_start,{Suite,GTC}}, + {?eh,tc_done,{Suite,GTC,ok}}] || + GTC <- GTCs], + GEvs = [{?eh,tc_start,{Suite,{init_per_group,G,Props}}}, + {?eh,tc_done,{Suite,{init_per_group,G,Props},ok}} | + GTCs1] ++ + [{?eh,tc_start,{Suite,{end_per_group,G,Props}}}, + {?eh,tc_done,{Suite,{end_per_group,G,Props},ok}}], + case lists:member(parallel, Props) of + true -> [{parallel,GEvs}]; + false -> GEvs + end; (TC) -> [{?eh,tc_done,{Suite,TC,ok}}] end, GroupsAndTCs), |