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
/
notification
/
test_notification_kernel_userspace_probe
diff --git
a/tests/regression/tools/notification/test_notification_kernel_userspace_probe
b/tests/regression/tools/notification/test_notification_kernel_userspace_probe
index 065e66add8523224f7ce4cc54166cb60a62b6ce0..38f5a5f41426e6f887ac963939a77f00ffc37321 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_kernel_userspace_probe
+++ b/
tests/regression/tools/notification/test_notification_kernel_userspace_probe
@@
-29,18
+29,18
@@
function test_kernel_userspace_probe_notification
wait $APP_PID 2> /dev/null
}
wait $APP_PID 2> /dev/null
}
-if [ "$(id -u)" == "0" ]; then
- validate_lttng_modules_present
+check_skip_kernel_test &&
+{
+ plan_skip_all "Skipping all tests."
+ exit 0
+}
+
+validate_lttng_modules_present
-
start_lttng_sessiond_notap
+start_lttng_sessiond_notap
-
test_kernel_userspace_probe_notification
+test_kernel_userspace_probe_notification
- stop_lttng_sessiond_notap
-else
- # Kernel tests are skipped.
- plan_tests $NUM_TESTS
- skip 0 "Root access is needed. Skipping all kernel notification tests." $NUM_TESTS
-fi
+stop_lttng_sessiond_notap
rm -f "$TESTAPP_STATE_PATH"
rm -f "$TESTAPP_STATE_PATH"
This page took
0.033968 seconds
and
4
git commands to generate.