Skip to content

Commit 4fd8434

Browse files
committed
Use the assert_suites function from rules_erlang
since it's the same implementation
1 parent 003dcf3 commit 4fd8434

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

@@ -248,7 +253,4 @@ def rabbitmq_integration_suite(
248253
return name
249254

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

0 commit comments

Comments
 (0)