projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add check_skip_kernel_test to check root user and lttng kernel modules
[lttng-tools.git]
/
tests
/
regression
/
kernel
/
test_rotation_destroy_flush
diff --git
a/tests/regression/kernel/test_rotation_destroy_flush
b/tests/regression/kernel/test_rotation_destroy_flush
index 6e568afda769cae29dd40fb41d913e9470df367e..fc22740262afd6ffe259ee26e768a56e65e46c26 100755
(executable)
--- 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
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
{
validate_lttng_modules_present
trap signal_cleanup SIGTERM SIGINT
This page took
0.026384 seconds
and
4
git commands to generate.