Skip to content

Commit 095203a

Browse files
committed
Adjustments for filesystem layout under bazel
Bazel doesn't assemble a unified deps dir in all cases, so we must be more lenient in filter_ct_helpers_and_testsuites_paths
1 parent fa3dc12 commit 095203a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/rabbit_ct_broker_helpers.erl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,9 +1506,11 @@ filter_ct_helpers_and_testsuites_paths(CodePath) ->
15061506
%% FIXME: This filtering is too naive. How to properly
15071507
%% distinguish RabbitMQ-related applications from
15081508
%% test-only modules?
1509-
((ParentDirName =:= "rabbitmq_ct_helpers" andalso
1509+
(((ParentDirName =:= "rabbitmq_ct_helpers" orelse
1510+
ParentDirName =:= "rabbitmq-ct-helpers") andalso
15101511
DirName =:= "ebin") orelse
1511-
(ParentDirName =:= "rabbitmq_ct_client_helpers" andalso
1512+
((ParentDirName =:= "rabbitmq_ct_client_helpers" orelse
1513+
ParentDirName =:= "rabbitmq-ct-client-helpers") andalso
15121514
DirName =:= "ebin") orelse
15131515
(DirName =:= "test"))
15141516
end, CodePath).

src/rabbit_ct_helpers.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ run_setup_steps(Config, ExtraSteps) ->
9191
[
9292
fun init_skip_as_error_flag/1,
9393
% fun guess_tested_erlang_app_name/1,
94+
fun ensure_secondary_umbrella/1,
9495
fun ensure_rabbitmq_ct_helpers_srcdir/1,
9596
fun ensure_make_cmd/1,
9697
fun ensure_rabbitmq_run_cmd/1,

0 commit comments

Comments
 (0)