cool-easter-32542
08/18/2023, 8:51 AM2.13.0a11
I have a few scala tests that use a Process to execute some bash commands that do some cleanup. In addition, we use also a 3rdparty Java class NatsServerRunner that requires the $PATH environment variable to be set and availble. However when running the tests I get an exception because the process cannot recognize the bash commands in the process or the binary used by the 3rdpartyclass
Describe the solution you'd like
Just like for pytest, add the ability to inject/set the environment variables
./pantsv2 test products/datalogue/hermes/test:: --test-extra-env-vars="['PATH=$PATH']"
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
pantsbuild/pantscool-easter-32542
08/18/2023, 8:51 AM