I am trying to run tests in Jenkins for a Python package which uses PyQt4, and the tests create windows. Since I'm running the tests in Jenkins, I need to redirect the graphical output, so I'm using xvfb-run. Most of the time, this works, but a fraction of the time, the testing will randomly fail with:
/usr/bin/xvfb-run: line 171: kill: (27375) - No such process
If I re-run the tests, it works fine most of the time (so it's just a one-off problem).
Has anyone encountered this issue before? Do you have any ideas for workarounds to improve the stability of the testing?