Skip to content

Conversation

@chrisnovakovic
Copy link
Contributor

The flag passed in the flags parameter of //test:flags_test isn't always guaranteed to be the first argument in the interpreter's arguments list - other factors, e.g. overriding the value of the plugin's InterpreterOptions configuration option when running the test, can affect the argument order. Relax the assertion in the test so it passes if the flag appears anywhere in the arguments list.

The flag passed in the `flags` parameter of `//test:flags_test` isn't
always guaranteed to be the first argument in the interpreter's
arguments list - other factors, e.g. overriding the value of the
plugin's `InterpreterOptions` configuration option when running the
test, can affect the argument order. Relax the assertion in the test so
it passes if the flag appears anywhere in the arguments list.
@chrisnovakovic chrisnovakovic merged commit ea885e6 into please-build:master Dec 1, 2025
155 of 156 checks passed
@chrisnovakovic chrisnovakovic deleted the flags_test-arg-anywhere branch December 1, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants