Skip to content
Commit 56894ae0 authored by Luca Fancellu's avatar Luca Fancellu
Browse files

test: Improve CAMComponent stop method and fixture



Improve the CAMComponent stop() method by checking if the
process is running and using wait() after sending the
termination signal, because it is not guaranteed that the
process will stop after that.
Use kill() as last resort if the application is still
running.

While there, improve the conftest.py fixture function,
there is no need to specify an autouse function to stop
the server, while we can use the yield in its fixture
function as explained in the docs.

Signed-off-by: Luca Fancellu's avatarLuca Fancellu <luca.fancellu@arm.com>
parent 6abf0872
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment