high-yak-85899
04/20/2023, 6:06 PM--test-extra-env-vars
on the command line in a way that appends to/modifies what's specific in pants.toml
?enough-analyst-54434
04/20/2023, 6:08 PM--test-extra-env-vars FOO=bar --test-extra-env-vars BAZ=spam
adds those two to any others configured is one way.high-yak-85899
04/20/2023, 6:09 PMhigh-yak-85899
04/20/2023, 6:09 PMenough-analyst-54434
04/20/2023, 6:09 PMpants help <all the options>
enough-analyst-54434
04/20/2023, 6:09 PMenough-analyst-54434
04/20/2023, 6:10 PM$ pants help test --test-extra-env-vars=FOO=bar | grep test-extra-env-vars -A10
--test-extra-env-vars="['<str>', '<str>', ...]"
PANTS_TEST_EXTRA_ENV_VARS
extra_env_vars
default: []
current value: [
"FOO=bar"
] (from command-line flag)
Additional environment variables to include in test processes. Entries are strings in
the form `ENV_VAR=value` to use explicitly; or just `ENV_VAR` to copy the value of a
variable in Pants's own environment.
enough-analyst-54434
04/20/2023, 6:12 PM$ PANTS_TEST_EXTRA_ENV_VARS='["A", "B=c"]' pants help test --test-extra-env-vars=FOO=bar | grep test-extra-env-vars -A10
--test-extra-env-vars="['<str>', '<str>', ...]"
PANTS_TEST_EXTRA_ENV_VARS
extra_env_vars
default: []
current value: [
"A",
"B=c",
"FOO=bar"
] (from env var PANTS_TEST_EXTRA_ENV_VARS, from command-line flag)
Additional environment variables to include in test processes. Entries are strings in
the form `ENV_VAR=value` to use explicitly; or just `ENV_VAR` to copy the value of a
high-yak-85899
04/20/2023, 6:14 PMhelp
would dynamically update like that