shift 2
diag "${FULL_LTTNG_BIN} add-trigger $*"
- set -x
"${FULL_LTTNG_BIN}" add-trigger "$@" > "${tmp_stdout}" 2> "${tmp_stderr}"
ok $? "${test_name}: exit code is 0"
- set +x
diff -u "${tmp_stdout}" <(echo "Added trigger \`$trigger_name\`.")
ok $? "${test_name}: expected stdout"
--name=open
test_failure "--exclude-name with non-glob name" \
- "Error: Event jean: Exclusions can only be used with a globbing pattern" \
+ "Error: Event name pattern must contain wildcard characters to use exclusions" \
--condition event-rule-matches --type=user --name='jean' --exclude-name jean-chretien \
--action notify