@@ -91,15 +91,15 @@ list_consumers_sanity_check(Config) ->
9191 % % `rabbitmqctl report` shares some code with `list_consumers`, so
9292 % % check that it also reports both channels
9393 {ok , ReportStdOut } = rabbit_ct_broker_helpers :rabbitmqctl (Config , A ,
94- [" list_consumers" ]),
94+ [" list_consumers" , " --no-table-headers " ]),
9595 ReportLines = re :split (ReportStdOut , <<" \n " >>, [trim ]),
9696 ReportCTags = [lists :nth (3 , re :split (Row , <<" \t " >>)) || <<" list_consumers_q" , _ /binary >> = Row <- ReportLines ],
9797 true = (lists :sort ([CTag1 , CTag2 ]) =:=
9898 lists :sort (ReportCTags )).
9999
100100rabbitmqctl_list_consumers (Config , Node ) ->
101101 {ok , StdOut } = rabbit_ct_broker_helpers :rabbitmqctl (Config , Node ,
102- [" list_consumers" ]),
102+ [" list_consumers" , " --no-table-headers " ]),
103103 [<<" Listing consumers" , _ /binary >> | ConsumerRows ] = re :split (StdOut , <<" \n " >>, [trim ]),
104104 CTags = [ lists :nth (3 , re :split (Row , <<" \t " >>)) || Row <- ConsumerRows ],
105105 CTags .
@@ -117,17 +117,17 @@ list_queues_online_and_offline(Config) ->
117117 rabbit_ct_broker_helpers :rabbitmqctl (Config , B , [" stop" ]),
118118
119119 GotUp = lists :sort (rabbit_ct_broker_helpers :rabbitmqctl_list (Config , A ,
120- [" list_queues" , " --online" , " name" ])),
120+ [" list_queues" , " --online" , " name" , " --no-table-headers " ])),
121121 ExpectUp = [[<<" q_a_1" >>], [<<" q_a_2" >>]],
122122 ExpectUp = GotUp ,
123123
124124 GotDown = lists :sort (rabbit_ct_broker_helpers :rabbitmqctl_list (Config , A ,
125- [" list_queues" , " --offline" , " name" ])),
125+ [" list_queues" , " --offline" , " name" , " --no-table-headers " ])),
126126 ExpectDown = [[<<" q_b_1" >>], [<<" q_b_2" >>]],
127127 ExpectDown = GotDown ,
128128
129129 GotAll = lists :sort (rabbit_ct_broker_helpers :rabbitmqctl_list (Config , A ,
130- [" list_queues" , " name" ])),
130+ [" list_queues" , " name" , " --no-table-headers " ])),
131131 ExpectAll = ExpectUp ++ ExpectDown ,
132132 ExpectAll = GotAll ,
133133
0 commit comments