tests: add check_skip_kernel_test to check root user and lttng kernel modules
[lttng-tools.git] / tests / regression / kernel / test_clock_override
index 524c3c3bb4014e6737459b0796648bf9899c7a16..c3688d3599efa28aed83d8eab7483ba44934bd78 100755 (executable)
@@ -174,13 +174,7 @@ TESTS=(
 TEST_COUNT=${#TESTS[@]}
 i=0
 
-if [ "$(id -u)" == "0" ]; then
-       isroot=1
-else
-       isroot=0
-fi
-
-skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
+check_skip_kernel_test "$NUM_TESTS" "Skipping all tests." ||
 {
        validate_lttng_modules_present
        trap signal_cleanup SIGTERM SIGINT
This page took 0.024292 seconds and 4 git commands to generate.