X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Fhealth%2Frunall;h=d1c8b34468b11a2d87d15a76d02839802622cdb7;hp=c22e3539cfa64ba9dd522872eafb3e749c7ccc02;hb=6b5133f20604535057af49574f4f506c8d94846c;hpb=55009a2289249d5d784c528234b0fbcd532f5551 diff --git a/tests/tools/health/runall b/tests/tools/health/runall index c22e3539c..d1c8b3446 100755 --- a/tests/tools/health/runall +++ b/tests/tools/health/runall @@ -2,7 +2,7 @@ DIR=$(dirname $0) -tests=( $DIR/health_thread_exit $DIR/health_thread_stall ) +tests=( $DIR/health_thread_exit $DIR/health_thread_stall $DIR/health_tp_fail) exit_code=0 function start_tests () @@ -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