tests/utils/utils.sh: bt_diff(): use `local -r` when possible
[babeltrace.git] / tests / utils / utils.sh
index b568590affd9f69a9ed615a42aba525d79025a9c..937496457b70ade86e19b63f67ecf22123016e65 100644 (file)
@@ -247,8 +247,8 @@ bt_cli() {
 #
 # Returns 0 if there's no difference, or not zero otherwise.
 bt_diff() {
-       local expected_file="$1"
-       local actual_file="$2"
+       local -r expected_file="$1"
+       local -r actual_file="$2"
        local ret=0
 
        diff -u <(bt_remove_cr_inline "$expected_file") <(bt_remove_cr_inline "$actual_file") 1>&2
This page took 0.022869 seconds and 4 git commands to generate.