Change "event rule hit" to "event-rule matches" in user interface strings
[lttng-tools.git] / tests / regression / tools / trigger / test_remove_trigger_cli
index 582cce7ef3fe4958aef349d455b145354601d4ae..126355a09107952b4d39cc81df5f1c96c63494ff 100755 (executable)
@@ -51,13 +51,13 @@ function list_triggers ()
 
 function remove_trigger ()
 {
-       local id="$1"
-       local test_name="remove trigger ${id}"
+       local name="$1"
+       local test_name="remove trigger ${name}"
 
-       "${FULL_LTTNG_BIN}" remove-trigger "${id}" > "${tmp_stdout}" 2> "${tmp_stderr}"
+       "${FULL_LTTNG_BIN}" remove-trigger "${name}" > "${tmp_stdout}" 2> "${tmp_stderr}"
        ok $? "${test_name}: exit code is 0"
 
-       diff -u <(echo "Removed trigger \`${id}\`.") "${tmp_stdout}"
+       diff -u <(echo "Removed trigger \`${name}\`.") "${tmp_stdout}"
        ok $? "${test_name}: expected stdout"
 
        diff -u /dev/null "${tmp_stderr}"
@@ -68,37 +68,40 @@ function remove_trigger ()
 start_lttng_sessiond_notap
 
 # Add a few triggers
-lttng_add_trigger_ok "ABC" --condition on-event aaa -u --filter 'p == 2' --action notify
-lttng_add_trigger_ok "DEF" --condition on-event -u -a --action notify
+lttng_add_trigger_ok "ABC" --condition event-rule-matches --name=aaa --domain=user --filter 'p == 2' --action notify
+lttng_add_trigger_ok "DEF" --condition event-rule-matches --domain=user --action notify
 
 cat > "${tmp_expected_stdout}" <<- EOF
-- id: ABC
-  user id: ${uid}
-  condition: event rule hit
+- name: ABC
+  owner uid: ${uid}
+  condition: event rule matches
     rule: aaa (type: tracepoint, domain: ust, filter: p == 2)
-    tracer notifications discarded: 0
   actions:
     notify
-- id: DEF
-  user id: ${uid}
-  condition: event rule hit
+      errors: none
+  errors: none
+- name: DEF
+  owner uid: ${uid}
+  condition: event rule matches
     rule: * (type: tracepoint, domain: ust)
-    tracer notifications discarded: 0
   actions:
     notify
+      errors: none
+  errors: none
 EOF
 list_triggers "two triggers left" "${tmp_expected_stdout}"
 
 remove_trigger "ABC"
 
 cat > "${tmp_expected_stdout}" <<- EOF
-- id: DEF
-  user id: ${uid}
-  condition: event rule hit
+- name: DEF
+  owner uid: ${uid}
+  condition: event rule matches
     rule: * (type: tracepoint, domain: ust)
-    tracer notifications discarded: 0
   actions:
     notify
+      errors: none
+  errors: none
 EOF
 list_triggers "one trigger left" "${tmp_expected_stdout}"
 
This page took 0.024921 seconds and 4 git commands to generate.