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_notifier_discarded_count
diff --git
a/tests/regression/tools/notification/test_notification_notifier_discarded_count
b/tests/regression/tools/notification/test_notification_notifier_discarded_count
index 1eb960d024b5d782dc16d6fddbdc7f97ad97294d..25ef370fad0641bafee60a64b56fd3f33c627253 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_notifier_discarded_count
+++ b/
tests/regression/tools/notification/test_notification_notifier_discarded_count
@@
-394,7
+394,8
@@
function test_ust_notifier_discarded_regardless_trigger_owner
test_ust_notifier_discarded_count
test_ust_notifier_discarded_count_max_bucket
test_ust_notifier_discarded_count
test_ust_notifier_discarded_count_max_bucket
-if [ "$(id -u)" == "0" ]; then
+check_skip_kernel_test "$KERNEL_NUM_TESTS" "Skipping kernel notification tests." ||
+{
validate_lttng_modules_present
validate_lttng_modules_present
@@
-416,9
+417,7
@@
if [ "$(id -u)" == "0" ]; then
modprobe --remove lttng-test
rm -rf "${sessiond_pipe[@]}" 2> /dev/null
modprobe --remove lttng-test
rm -rf "${sessiond_pipe[@]}" 2> /dev/null
-else
- # Kernel tests are skipped.
- skip 0 "Root access is needed. Skipping all kernel notification tests." $KERNEL_NUM_TESTS
-fi
+
+}
rm -rf "$TEST_TMPDIR"
rm -rf "$TEST_TMPDIR"
This page took
0.023807 seconds
and
4
git commands to generate.