From 0824c914aaf637dfd534fedd612d15f6d7ea001a Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 9 Nov 2023 23:12:59 -0500 Subject: [PATCH] tests/utils/utils.sh: bt_cli(): use `local -r` when possible Signed-off-by: Philippe Proulx Change-Id: I999dd0d6f6781344db905aad46b5ff2ea6812be2 --- 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 73cacdd0..b568590a 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -227,10 +227,10 @@ bt_remove_cr_inline() { # # Returns the exit status of the executed `$BT_TESTS_BT2_BIN`. bt_cli() { - local stdout_file="$1" - local stderr_file="$2" + local -r stdout_file="$1" + local -r stderr_file="$2" shift 2 - local args=("$@") + local -r args=("$@") echo "Running: $BT_TESTS_BT2_BIN ${args[*]}" >&2 run_python_bt2 "$BT_TESTS_BT2_BIN" "${args[@]}" 1>"$stdout_file" 2>"$stderr_file" -- 2.34.1