X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_notifier_discarded_count;h=25ef370fad0641bafee60a64b56fd3f33c627253;hb=3a1744008331a0604479d3d7461f77056fad3a64;hp=1eb960d024b5d782dc16d6fddbdc7f97ad97294d;hpb=f2b390e97d3b6ec347fe7c4af3b46256716ae054;p=lttng-tools.git diff --git a/tests/regression/tools/notification/test_notification_notifier_discarded_count b/tests/regression/tools/notification/test_notification_notifier_discarded_count index 1eb960d02..25ef370fa 100755 --- 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 -if [ "$(id -u)" == "0" ]; then +check_skip_kernel_test "$KERNEL_NUM_TESTS" "Skipping kernel notification tests." || +{ validate_lttng_modules_present @@ -416,9 +417,7 @@ if [ "$(id -u)" == "0" ]; then 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"