Improve functional tests launcher pytest support 40/104140/5
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 25 Jan 2023 11:59:21 +0000 (12:59 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 27 Feb 2023 11:25:05 +0000 (11:25 +0000)
commitc00292b48c6f95d7fe0ff0e8df892972f97b5a3a
tree7da431b4963b2628c274897c40d9c4a1dbb4a341
parent5c34be2dd314a10a0fd3a3bf97d1d48d23ef5ce8
Improve functional tests launcher pytest support

Using pytest from the python interpreter can generate unwanted behavior.

https://askubuntu.com/questions/1222958/
why-does-ctrl-c-not-kill-python-running-in-terminal

Typically when using Ctrl-C, subprocess are not properly killed.
This was not happening with nosetests before.
Unfortunately it has been superseded by nose2 which is not properly
working with the current testsuite and is not under active development.

- replace "python3 -m pytest" in launch script by pytest-3 or pytest
  when available.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I871fa0fce48e176427b07809138a0e4ba1e03247
tests/launch_tests.sh