From: David Goulet Date: Tue, 27 Nov 2012 18:51:45 +0000 (-0500) Subject: Fix: run health test only if root X-Git-Tag: v2.1.0-rc9~8 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=8c861e6c62f1b2723876d110b8943b95ffc82d6a Fix: run health test only if root Signed-off-by: David Goulet --- diff --git a/tests/tools/health/runall b/tests/tools/health/runall index c22e3539c..65a8ad159 100755 --- a/tests/tools/health/runall +++ b/tests/tools/health/runall @@ -23,6 +23,11 @@ function start_tests () done } +if [ "$(id -u)" != "0" ]; then + echo -e "Need root for health test." + exit 0 +fi + start_tests exit $exit_code