X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Fkernel%2Ftest_rotation_destroy_flush;h=fc22740262afd6ffe259ee26e768a56e65e46c26;hb=3a1744008331a0604479d3d7461f77056fad3a64;hp=6e568afda769cae29dd40fb41d913e9470df367e;hpb=f2b390e97d3b6ec347fe7c4af3b46256716ae054;p=lttng-tools.git diff --git a/tests/regression/kernel/test_rotation_destroy_flush b/tests/regression/kernel/test_rotation_destroy_flush index 6e568afda..fc2274026 100755 --- a/tests/regression/kernel/test_rotation_destroy_flush +++ b/tests/regression/kernel/test_rotation_destroy_flush @@ -120,13 +120,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