From 30723e1ca627460ec04ae7392aad517ea4c9dea5 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 9 Nov 2023 23:15:02 -0500 Subject: [PATCH] tests/utils/utils.sh: bt_diff_details_ctf_single(): use `local -r` when possible Signed-off-by: Philippe Proulx Change-Id: Iaf6229b868111eb0870c023ebd4e030b28d01c2c --- tests/utils/utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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` -- 2.34.1