3 # Copyright (C) 2013 David Goulet <dgoulet@efficios.com>
5 # SPDX-License-Identifier: LGPL-2.1-only
10 # We use the .libs/ binary since it's run from the repository.
11 REPO_RELAYD_BIN
="lt-lttng-relayd"
13 # Number of seconds the we sleep before killing the relayd. If RANDOM_KILL is
14 # defined, it's between 1 and 10 seconds.
20 source $TESTDIR/utils
/utils.sh
24 return $
(echo $RANDOM % $NR_SEC + 1 |
bc)
27 function kill_relayd
()
29 if [ $RANDOM_KILL -eq 1 ]; then
30 # Something between 1 and NR_SEC seconds.
36 killall
-q -9 $REPO_RELAYD_BIN >/dev
/null
2>&1
39 # Do we have to run in an infinite loop ?
44 # Should it be a random kill or not ?
49 # MUST set TESTDIR before this point.
51 if [ $KILL_LOOP -eq 0 ]; then
This page took 0.034304 seconds and 5 git commands to generate.