https://pantsbuild.org/ logo
#general
Title
# general
h

high-yak-85899

01/30/2023, 7:56 PM
I'm trying to use https://pypi.org/project/pytest-rabbitmq/ in a unit test. It sets up a fixture that starts/stops a rabbitmq server for use in a test. I got this working outside of pants with
pytest
so I know my installation is good. It requires a
rabbitmq-server
and
erlang
installation on the system which are both available under my
PATH
. Pants seems to be picking things up fine because the server is attempted to start, but fails the boot process. I think sandboxing is the most obvious thing at play here. Any ideas for environment variable differences or similar to look at? When I preserve sandboxes, the generated
__run.sh
executes without error.
1
c

curved-television-6568

01/30/2023, 8:02 PM
My guess would be
HOME
or
USER
or there abouts.
If rabbitmq fails to boot, that may be due to failing to find epmd perhaps..?
h

high-yak-85899

01/30/2023, 8:04 PM
I'd be surprised that it found
rabbitmq-server
but not
epmd
.
HOME
was it 🎉
Adding that to
[test].extra_env_vars
did the thing
c

curved-television-6568

01/30/2023, 8:05 PM
I mean to find the running instance of epmd.. 😁
great 🎉
7 Views