beacon server not exiting when test fails
Sorry to come back on this. Since sys.exit(0)
has been removed, beacon server does not exit if a test fails.
Small example demonstrating the problem:
def test_bigfail(beacon):
raise NotImplementedError
pytest -k bigfail
results in:
/home/matias/dev/bliss, inifile: setup.cfg
plugins: mock-1.6.3, cov-2.5.1
collected 276 items
tests/motors/test_axis.py::test_bigfail FAILED [100%]
---------- coverage: platform linux2, python 2.7.14-final-0 ----------
Name Stmts Miss Cover
--------------------------------------------------------------------------------
...
==================================================================================================== FAILURES =====================================================================================================
__________________________________________________________________________________________________ test_bigfail ___________________________________________________________________________________________________
beacon = <bliss.config.static.Config object at 0x7f746cb5e290>
def test_bigfail(beacon):
> raise NotImplementedError
E NotImplementedError
tests/motors/test_axis.py:22: NotImplementedError
as expected, but:
(bliss) [matias@dagobah bliss]$ ps -ef | grep python
matias 663 633 0 2017 ? 00:00:04 python /usr/bin/blueman-applet
matias 6597 1 0 07:47 pts/1 00:00:00 /home/matias/miniconda2/envs/bliss/bin/python -m bliss.config.conductor.server --port=7655 --redis_port=7654 --redis_socket=/tmp/redis_test.sock --db_path=/home/matias/dev/bliss/tests/test_configuration --posix_queue=0 --tango_port=12345
matias 6598 6597 6 07:47 pts/1 00:00:00 /home/matias/miniconda2/envs/bliss/bin/python -c import tango.databaseds.db_access.beacon import tango.databaseds.database tango.databaseds.database.main() -l 0 --db_access beacon --port 12345 2
Help me, Obi-Wan Kenobi. You're my only hope.
Edited by Matias Guijarro