X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fkernel%2Ftest_rotation_destroy_flush;h=6e568afda769cae29dd40fb41d913e9470df367e;hb=HEAD;hp=cb773d7df59973c4a31ca69e6332cda9601f46f1;hpb=0159fa50ebb4c8ea0e34a24f99bc8f5cda298be4;p=lttng-tools.git diff --git a/tests/regression/kernel/test_rotation_destroy_flush b/tests/regression/kernel/test_rotation_destroy_flush index cb773d7df..fc2274026 100755 --- a/tests/regression/kernel/test_rotation_destroy_flush +++ b/tests/regression/kernel/test_rotation_destroy_flush @@ -120,20 +120,14 @@ 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 while [ "$i" -lt "$TEST_COUNT" ]; do - TRACE_PATH=$(mktemp --tmpdir -d -t tmp.test_kernel_rotation_destroy_flush.XXXXXX) + TRACE_PATH=$(mktemp -d -t tmp.test_kernel_rotation_destroy_flush.XXXXXX) # Execute test ${TESTS[$i]}