Tests: refuse to run test suite if lttng processes are present
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Feb 2018 21:40:39 +0000 (16:40 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 12 Feb 2018 17:20:10 +0000 (12:20 -0500)
commite95abc31102d65800185e29919036e53a55e0b93
tree7343f866f7c497da5bc60c42b7c457d7da8b6c3d
parent85aa60d7724d9398c1c0c958056bc38009cf0381
Tests: refuse to run test suite if lttng processes are present

The test suite often fails because of unclean environments where
stale LTTng processes are left running. Since the test suite
assumes that no LTTng process (daemons and test applications) are
running, it makes sense to force the user to kill all those
processes before running the test suite.

The warn_processes.sh script now prints an error and returns 1
to indicate an early failure to the test harness.

It is possible to circumvent this check by invoking the tests
manually or by removing the "exit 1" from the warn_processes.sh
script if there is a need to have persistent processes across
the execution of the test suite.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/warn_processes.sh
This page took 0.024915 seconds and 4 git commands to generate.