Improve functional tests launcher pytest support 07/105507/3
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 25 Jan 2023 11:59:21 +0000 (12:59 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Wed, 19 Apr 2023 17:10:57 +0000 (19:10 +0200)
commitf04b016f5cd5c167fe952ebefadf417524b7fcd6
treeb4bcab8718f868ef04970948173ac63e4f40e782
parent041f243c312ed09cb064978fa049a66a82331ca1
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