I need help with the python-neovim package, which is almost done (you can see it on alioth[1]). Right now I am stalled, as I can't get the tests to pass when building in a chroot (pbuilder). The tests require a neovim instance running as server, so for example one can use `dtach` to run nvim, and run the tests against it. This already works outside of pbuilder, but I fail to reproduce it in pbuilder. A simplified example of what is needed, without proper cleansing after the tests would be: >dtmp = /build >override_dh_auto_test: > # start a detached session with a nvim server: > export NVIM_LISTEN_ADDRESS=$(dtmp)/nvim-socket > dtach -n $(dtmp)/dtach-socket env TERM=vt100 nvim > dh_auto_test Which is the same as doing by hand: > $ export NVIM_LISTEN_ADDRESS=/tmp/nvim-socket > $ dtach -n /tmp/dtach-socket env TERM=vt100 nvim > $ python2.7 -m nose test Yet the tests fail inside pbuilder: it seems it doesn't export NVIM_LISTEN_ADDRESS. Could someone share a light on what I am missing or messing up? The following would be to clean up the build machine afterwards, right now I have: >override_dh_auto_test: ># start a detached session with a nvim server: > export NVIM_LISTEN_ADDRESS=$(dtmp)/nvim-socket > dtach -n $(dtmp)/dtach-socket env TERM=vt100 nvim > PID=$! > dh_auto_test || touch dh_auto_test.fail ># cleanup: > kill $PID > rm -f $(dtmp)/dtach-socket > rm -f $(dtmp)/nvim-socket > @if test -e dh_auto_test.fail ; then \ > echo "---- dh_auto_test fail ----" ; \ > rm -f dh_auto_test.fail; false; fi I have tried several ways to store and use the PID, but I can't get it right. Could someone share an example on how to do it? (codesearch didn't help me much) Cheers and thanks in advance, [1]: https://anonscm.debian.org/cgit/python-modules/packages/python-neovim.git -- Víctor Cuadrado juan E-Mail: <me@viccuad.me>, OpenPGP-Key-ID: 0xA2591E231E251F36 Key fingerprint: E3C5 114C 0C5B 4C49 BA03 0991 A259 1E23 1E25 1F36 My signed E-Mails are trustworthy.
Attachment:
signature.asc
Description: PGP signature