From: Philippe Proulx Date: Fri, 10 Nov 2023 04:15:02 +0000 (-0500) Subject: tests/utils/utils.sh: bt_diff_details_ctf_single(): use `local -r` when possible X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=30723e1ca627460ec04ae7392aad517ea4c9dea5 tests/utils/utils.sh: bt_diff_details_ctf_single(): use `local -r` when possible Signed-off-by: Philippe Proulx Change-Id: Iaf6229b868111eb0870c023ebd4e030b28d01c2c --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index fa511e4f..d8270905 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -312,10 +312,10 @@ bt_diff_cli() { # Returns 0 if there's no difference, or 1 otherwise, also printing said # difference to the standard error. bt_diff_details_ctf_single() { - local expected_stdout_file="$1" - local trace_dir="$2" + local -r expected_stdout_file="$1" + local -r trace_dir="$2" shift 2 - local extra_details_args=("$@") + local -r extra_details_args=("$@") expected_stderr_file="/dev/null" # Compare using the CLI with `sink.text.details`