From: Jérémie Galarneau Date: Wed, 7 Jul 2021 18:59:02 +0000 (-0400) Subject: Tests: fix: list triggers: bc missing on system X-Git-Tag: v2.13.0-rc3~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=df9542428e02e1b63ac8a023cda7164a68c8ef34;p=lttng-tools.git Tests: fix: list triggers: bc missing on system `bc` is not part of the test suite's dependancies and can be replaced, in this instance, by a use of `printf`. This use of `bc` caused a number of failures on the CI's Lava workers. Signed-off-by: Jérémie Galarneau Change-Id: I1a1b24a23325754c26ebedfdb6b7728378381d97 --- diff --git a/tests/regression/tools/trigger/test_list_triggers_cli b/tests/regression/tools/trigger/test_list_triggers_cli index 7355f3897..162b1328b 100755 --- a/tests/regression/tools/trigger/test_list_triggers_cli +++ b/tests/regression/tools/trigger/test_list_triggers_cli @@ -814,7 +814,7 @@ test_event_rule_matches_probe () fi offset_hex="0x$(printf '%x' $offset)" - channel_enable_addr_decimal=$(echo "ibase=16; ${channel_enable_addr^^} " | bc) + channel_enable_addr_decimal=$(printf '%u' 0x"${channel_enable_addr}") lttng_add_trigger_ok "T0" --condition event-rule-matches --type=kprobe --location=lttng_channel_enable --event-name=my_channel_enable --action notify lttng_add_trigger_ok "T1" --condition event-rule-matches --type=kprobe --location="${base_symbol}+${offset_hex}" --event-name=my_channel_enable --action notify