From 8c861e6c62f1b2723876d110b8943b95ffc82d6a Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 27 Nov 2012 13:51:45 -0500 Subject: [PATCH] Fix: run health test only if root Signed-off-by: David Goulet --- tests/tools/health/runall | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1