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
/
tools
/
snapshots
/
test_kernel_streaming
diff --git
a/tests/regression/tools/snapshots/test_kernel_streaming
b/tests/regression/tools/snapshots/test_kernel_streaming
index 2abd838e77336485438e541367946af05fb05e4b..e80e78a8cf64650c94f6507c6f7a05be63356bca 100755
(executable)
--- a/
tests/regression/tools/snapshots/test_kernel_streaming
+++ b/
tests/regression/tools/snapshots/test_kernel_streaming
@@
-145,13
+145,7
@@
plan_tests $NUM_TESTS
print_test_banner "$TEST_DESC"
print_test_banner "$TEST_DESC"
-if [ "$(id -u)" == "0" ]; then
- isroot=1
-else
- isroot=0
-fi
-
-skip $isroot "Root access is needed. Skipping all kernel streaming tests" $NUM_TESTS ||
+check_skip_kernel_test $NUM_TESTS "Skipping all tests." ||
{
validate_lttng_modules_present
{
validate_lttng_modules_present
This page took
0.024769 seconds
and
4
git commands to generate.