Fix: run health test only if root
authorDavid Goulet <dgoulet@efficios.com>
Tue, 27 Nov 2012 18:51:45 +0000 (13:51 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 27 Nov 2012 18:51:45 +0000 (13:51 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/tools/health/runall

index c22e3539cfa64ba9dd522872eafb3e749c7ccc02..65a8ad159bd105719e43b765c372949e0a11e1d5 100755 (executable)
@@ -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
This page took 0.025782 seconds and 4 git commands to generate.