aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2012-11-19 18:01:04 +0100
committerPeter Andersson <[email protected]>2012-11-19 18:01:04 +0100
commit44fa71f32c0e901c73808657af7b8ab38158817b (patch)
tree33042d11f842887d826844da491145b32d63815d /lib/common_test/test
parent0034dfc83ad3f18a67df38b4414fe74be7cbcdf6 (diff)
downloadotp-44fa71f32c0e901c73808657af7b8ab38158817b.tar.gz
otp-44fa71f32c0e901c73808657af7b8ab38158817b.tar.bz2
otp-44fa71f32c0e901c73808657af7b8ab38158817b.zip
Fix problem with test case order in group specifications
Diffstat (limited to 'lib/common_test/test')
-rw-r--r--lib/common_test/test/ct_groups_search_SUITE.erl52
1 files changed, 27 insertions, 25 deletions
diff --git a/lib/common_test/test/ct_groups_search_SUITE.erl b/lib/common_test/test/ct_groups_search_SUITE.erl
index 76b2d14e5c..6b1c1f4634 100644
--- a/lib/common_test/test/ct_groups_search_SUITE.erl
+++ b/lib/common_test/test/ct_groups_search_SUITE.erl
@@ -162,7 +162,7 @@ all_groups(_) ->
%%%-----------------------------------------------------------------
%%%
testcases_in_all_groups(_) ->
- GPath = all, TCs = [sub_tc2,tc3],
+ GPath = all, TCs = [tc3,sub_tc2],
Found = ct_groups:find_groups(?M2, GPath, TCs, groups2()),
@@ -170,60 +170,61 @@ testcases_in_all_groups(_) ->
{conf,[{name,top1}],{?M2,init_per_group},
[{?M2,tc3},
{conf,[{name,sub11}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],
{?M2,end_per_group}},
{conf,[{name,sub12}],
{?M2,init_per_group},
- [{?M2,sub_tc2},{?M2,tc3},
+ [{?M2,tc3},{?M2,sub_tc2},
{conf,[{name,sub121}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],
{?M2,end_per_group}}],
{?M2,end_per_group}}],
{?M2,end_per_group}},
Top2 =
{conf,[{name,top2}],{?M2,init_per_group},
- [{conf,[{name,sub21}],
+ [{?M2,tc3},
+ {conf,[{name,sub21}],
{?M2,init_per_group},
- [{?M2,sub_tc2},{?M2,tc3},
+ [{?M2,tc3},{?M2,sub_tc2},
{conf,[{name,sub2xx}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],
{?M2,end_per_group}}],
{?M2,end_per_group}},
- {?M2,tc3}, % in top2
+
{conf,[{name,sub22}],
{?M2,init_per_group},
- [{conf,[{name,sub221}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],
+ [{?M2,tc3},{?M2,sub_tc2},
+ {conf,[{name,sub221}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],
{?M2,end_per_group}},
- {?M2,sub_tc2},{?M2,tc3}, % in sub22
{conf,[{name,sub2xx}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],
{?M2,end_per_group}}],
{?M2,end_per_group}}],
{?M2,end_per_group}},
{conf,[{name,sub21}],
{?M2,init_per_group},
- [{?M2,sub_tc2},{?M2,tc3},
+ [{?M2,tc3},{?M2,sub_tc2},
{conf,[{name,sub2xx}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],{?M2,end_per_group}}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],{?M2,end_per_group}}],
{?M2,end_per_group}},
{conf,[{name,sub22}],
{?M2,init_per_group},
- [{conf,[{name,sub221}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],{?M2,end_per_group}},
- {?M2,sub_tc2},{?M2,tc3},
+ [{?M2,tc3},{?M2,sub_tc2},
+ {conf,[{name,sub221}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],{?M2,end_per_group}},
{conf,[{name,sub2xx}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],{?M2,end_per_group}}],
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],{?M2,end_per_group}}],
{?M2,end_per_group}},
{conf,[{name,sub221}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],{?M2,end_per_group}},
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],{?M2,end_per_group}},
{conf,[{name,sub2xx}],
- {?M2,init_per_group},[{?M2,sub_tc2},{?M2,tc3}],{?M2,end_per_group}}]
+ {?M2,init_per_group},[{?M2,tc3},{?M2,sub_tc2}],{?M2,end_per_group}}]
= Found,
@@ -450,7 +451,8 @@ testcase_in_top_groups2(_) ->
{conf,[{name,top2}],
{?M2,init_per_group},
- [{conf,[{name,sub21}],
+ [{?M2,tc3},
+ {conf,[{name,sub21}],
{?M2,init_per_group},
[{?M2,tc3},
{conf,[{name,sub2xx}],
@@ -458,14 +460,14 @@ testcase_in_top_groups2(_) ->
[{?M2,tc3}],
{?M2,end_per_group}}],
{?M2,end_per_group}},
- {?M2,tc3},
+
{conf,[{name,sub22}],
{?M2,init_per_group},
- [{conf,[{name,sub221}],
+ [{?M2,tc3},
+ {conf,[{name,sub221}],
{?M2,init_per_group},
[{?M2,tc3}],
- {?M2,end_per_group}},
- {?M2,tc3},
+ {?M2,end_per_group}},
{conf,[{name,sub2xx}],
{?M2,init_per_group},
[{?M2,tc3}],