tests: add check_skip_kernel_test to check root user and lttng kernel modules
[lttng-tools.git] / tests / regression / tools / streaming / test_high_throughput_limits
index 50c21df4d14cfcdcc8bb62d130dd3eae1bef5e71..91ab2fe7b25e945d77eb4f6ba725a03eeea55aa4 100755 (executable)
@@ -174,13 +174,7 @@ print_test_banner "$TEST_DESC"
 
 bail_out_if_no_babeltrace
 
-if [ "$(id -u)" == "0" ]; then
-       isroot=1
-else
-       isroot=0
-fi
-
-skip $isroot "Root access is needed to set bandwith limits. Skipping all tests." $NUM_TESTS ||
+check_skip_kernel_test "$NUM_TESTS" "Skipping all tests." ||
 {
 
        # Catch sigint and try to cleanup limits
This page took 0.0233 seconds and 4 git commands to generate.