Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/rules/action_command_line_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,20 @@ def _action_command_line_test_impl(ctx):
if expected + " " not in concatenated_args:
unittest.fail(
env,
"{}expected argv to contain '{}', but it did not".format(
"{}expected argv to contain '{}', but it did not: {}".format(
message_prefix,
expected,
concatenated_args,
),
)
for not_expected in ctx.attr.not_expected_argv:
if not_expected + " " in concatenated_args:
unittest.fail(
env,
"{}expected argv to not contain '{}', but it did".format(
"{}expected argv to not contain '{}', but it did: {}".format(
message_prefix,
not_expected,
concatenated_args,
),
)

Expand Down