local END_TRIGGER_NAME="end-trigger1"
local SYNC_AFTER_NOTIF_REGISTER_PATH
- SYNC_AFTER_NOTIF_REGISTER_PATH=$(mktemp -u test-notif-register.XXXXXX)
+ SYNC_AFTER_NOTIF_REGISTER_PATH=$(mktemp -u -t test-notif-register.XXXXXX)
diag "Every N rate policy"
# time the condition is met.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition event-rule-matches -u "tp:tptest" \
+ --condition event-rule-matches --type=user --name="tp:tptest" \
--action notify \
--rate-policy=every:5
# the notification subsystem.
lttng_add_trigger_ok \
$END_TRIGGER_NAME \
- --condition event-rule-matches -u "tp:end" \
+ --condition event-rule-matches --type=user --name="tp:end" \
--action notify
for i in $(seq 1 4); do
local END_TRIGGER_NAME="end-trigger1"
local SYNC_AFTER_NOTIF_REGISTER_PATH
- SYNC_AFTER_NOTIF_REGISTER_PATH=$(mktemp -u test-notif-register.XXXXXX)
+ SYNC_AFTER_NOTIF_REGISTER_PATH=$(mktemp -u -t test-notif-register.XXXXXX)
diag "Once after N rate policy"
# time the condition is met.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition event-rule-matches -u "tp:tptest" \
+ --condition event-rule-matches --type=user --name="tp:tptest" \
--action notify \
--rate-policy=once-after:5
# the notification subsystem.
lttng_add_trigger_ok \
$END_TRIGGER_NAME \
- --condition event-rule-matches -u "tp:end" \
+ --condition event-rule-matches --type=user --name="tp:end" \
--action notify
## Phase 1