Skip to content

Commit 45fa538

Browse files
HoloRinmergify-bot
authored andcommitted
Use the assert_suites function from rules_erlang
since it's the same implementation (cherry picked from commit 4fd8434) (cherry picked from commit 15b75aa)
1 parent 714e019 commit 45fa538

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

rabbitmq.bzl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ load(
55
"erlang_app",
66
"test_erlang_app",
77
)
8-
load("@rules_erlang//:ct_sharded.bzl", "ct_suite", "ct_suite_variant")
8+
load(
9+
"@rules_erlang//:ct_sharded.bzl",
10+
"ct_suite",
11+
"ct_suite_variant",
12+
_assert_suites = "assert_suites",
13+
)
914
load("//:rabbitmq_home.bzl", "rabbitmq_home")
1015
load("//:rabbitmq_run.bzl", "rabbitmq_run")
1116

@@ -246,7 +251,4 @@ def rabbitmq_integration_suite(
246251
return name
247252

248253
def assert_suites(suite_names, suite_files):
249-
for f in suite_files:
250-
sn = f.rpartition("/")[-1].replace(".erl", "")
251-
if not sn in suite_names:
252-
fail("A bazel rule has not been defined for {} (expected {} in {}".format(f, sn, suite_names))
254+
_assert_suites(suite_names, suite_files)

0 commit comments

Comments
 (0)