@@ -175,18 +175,21 @@ def rabbitmq_suite(
175
175
deps = [],
176
176
runtime_deps = [],
177
177
** kwargs ):
178
+ app_name = native .package_name ().rpartition ("/" )[- 1 ]
178
179
# suite_name exists in the underying ct_test macro, but we don't
179
180
# want to use the arg in rabbitmq-server, for the sake of clarity
180
181
if suite_name != None :
181
182
fail ("rabbitmq_suite cannot be called with a suite_name attr" )
182
183
ct_test (
183
184
name = name ,
185
+ app_name = app_name ,
184
186
compiled_suites = [":{}_beam_files" .format (name )] + additional_beam ,
185
187
ct_run_extra_args = [ENABLE_FEATURE_MAYBE_EXPR ],
186
188
data = native .glob (["test/{}_data/**/*" .format (name )]) + data ,
187
189
test_env = dict ({
188
190
"RABBITMQ_CT_SKIP_AS_ERROR" : "true" ,
189
191
"LANG" : "C.UTF-8" ,
192
+ "COVERDATA_TO_LCOV_APPS_DIRS" : "deps:deps/rabbit/apps" ,
190
193
}.items () + test_env .items ()),
191
194
deps = [":test_erlang_app" ] + deps + runtime_deps ,
192
195
** kwargs
@@ -221,6 +224,7 @@ def rabbitmq_integration_suite(
221
224
deps = [],
222
225
runtime_deps = [],
223
226
** kwargs ):
227
+ app_name = native .package_name ().rpartition ("/" )[- 1 ]
224
228
# suite_name exists in the underying ct_test macro, but we don't
225
229
# want to use the arg in rabbitmq-server, for the sake of clarity
226
230
if suite_name != None :
@@ -239,6 +243,7 @@ def rabbitmq_integration_suite(
239
243
240
244
ct_test (
241
245
name = name ,
246
+ app_name = app_name ,
242
247
suite_name = name ,
243
248
compiled_suites = [":{}_beam_files" .format (name )] + additional_beam ,
244
249
tags = tags + [STARTS_BACKGROUND_BROKER_TAG ],
@@ -252,6 +257,7 @@ def rabbitmq_integration_suite(
252
257
"RABBITMQ_PLUGINS" : "$TEST_SRCDIR/$TEST_WORKSPACE/{}/broker-for-tests-home/sbin/rabbitmq-plugins" .format (package ),
253
258
"RABBITMQ_QUEUES" : "$TEST_SRCDIR/$TEST_WORKSPACE/{}/broker-for-tests-home/sbin/rabbitmq-queues" .format (package ),
254
259
"LANG" : "C.UTF-8" ,
260
+ "COVERDATA_TO_LCOV_APPS_DIRS" : "deps:deps/rabbit/apps" ,
255
261
}.items () + test_env .items ()),
256
262
tools = [
257
263
":rabbitmq-for-tests-run" ,
0 commit comments