rules_apple
rules_apple copied to clipboard
test_env value truncated if has comma
The xctest runner uses comma as separator to parse test_env, however it's common that the environment variable value contains comma as well, here is an example in grpc:
--test_env=GRPC_EXPERIMENTS=event_engine_client,event_engine_listener \
--test_env=GRPC_TRACE=event_engine,api \
This works fine in Linux, but on ios the environment variables passed to the test become
GRPC_EXPERIMENTS=event_engine_client
GRPC_TRACE=event_engine
event_engine_listener=
api=
@keith Looks like you have been contributing a lot on the xctest runner, will you be able help on this?
Should this just be changed so that --test_env
accumulates and takes whatever value it was provided literally?
i.e.
bazel build //Foo --test_env=FOO=bar,baz --test_env=OTHER=Something
FOO="bar,baz"
OTHER="Something"
Yes. In my case, the expectation is:
GRPC_EXPERIMENTS="event_engine_client,event_engine_listener"
GRPC_TRACE="event_engine,api"
yea sounds reasonable