-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
args attribute expansion handles shell expansion prematurely #6274
Comments
Given #6275, which reports similar problems with spaces in arguments... it seems that this code is going further and attempting to perform even more shell expansions on the arguments. I think the |
I'm facing this with a py_test(
name = "test_foo",
args = [ "-m", "markerA and not markerB"],
....
) In the pytest scenario it's taking the tokens individually and yielding
Update
|
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
@bazelbuild/triage Not stale |
Description of the problem / feature request:
Bazel does not pass empty test arguments from
*_test.args
to the test, but it does pass them from--test_arg
.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
BUILD
file:x.cc
file:Repro:
As you see the command line does not contain the "" argument from the BUILD file, but does from the
--test_arg
flag.What operating system are you running Bazel on?
Linux
What's the output of
bazel info release
?The text was updated successfully, but these errors were encountered: