Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

serializing Args to a shell-escaped string

126 views
Skip to first unread message

Jonathan Mayer

unread,
Aug 6, 2024, 1:55:35 AM8/6/24
to bazel-discuss
I want to be able to use an Args object (produced using ctx.actions.args) in creating the command line for a bazel test rule.  Unfortunately, it seems I can't execute such a test using ctx.actions.run or similar -- instead, I have to create an executable wrapper script that contains my test binary's command line.

Is there any way to convert an Args object to a shell-escaped string?

(I realize I could just use a list and shell.quote instead of an Args object, but isn't this what the Args object was meant for?)

Thanks in advance,
- Jonathan.
Reply all
Reply to author
Forward
0 new messages