Tests: fix: test_notification_notifier_discarded_count missing renames
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 23 Apr 2021 22:30:22 +0000 (18:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 23 Apr 2021 22:30:22 +0000 (18:30 -0400)
Some options of lttng-add-trigger were renamed without adapting the
test since that part is only ran when destructive tests are enabled.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia5b01e64a3766adced292be7f7436d742b3308c7

tests/regression/tools/notification/test_notification_notifier_discarded_count

index 9320140d354288007d3e36c984b308e5586b223e..5f2754362b7a7678e6edb964a31c9cda5e482cf0 100755 (executable)
@@ -284,11 +284,11 @@ function test_ust_notifier_discarded_count_multi_uid
        done
 
        lttng_add_trigger_ok "$root_trigger_name" \
-               --condition on-event --userspace tp:tptest \
+               --condition event-rule-matches --domain=user --name tp:tptest \
                --action notify
 
-       lttng_add_trigger_ok "$user_trigger_name" --user-id "$new_uid" \
-               --condition on-event --userspace tp:tptest \
+       lttng_add_trigger_ok "$user_trigger_name" --owner-uid "$new_uid" \
+               --condition event-rule-matches --domain=user --name tp:tptest \
                --action notify
 
        # Stop consumption of notifier tracer notifications.
@@ -309,7 +309,7 @@ function test_ust_notifier_discarded_count_multi_uid
                "User trigger discarded notifications number ($user_trigger_discarded_nb) is non-zero"
 
        lttng_remove_trigger_ok "$root_trigger_name"
-       lttng_remove_trigger_ok "$user_trigger_name" --user-id "$new_uid"
+       lttng_remove_trigger_ok "$user_trigger_name" --owner-uid "$new_uid"
 
        stop_lttng_sessiond_notap
 
@@ -364,7 +364,7 @@ function test_ust_notifier_discarded_regardless_trigger_owner
        done
 
        lttng_add_trigger_ok "$root_trigger_name" \
-               --condition on-event --userspace tp:tptest \
+               --condition event-rule-matches --domain=user --name tp:tptest \
                --action notify
 
        # Stop consumption of notifier tracer notifications.
This page took 0.026731 seconds and 4 git commands to generate.