tests/utils/utils.sh: bt_grep_ok(): use `local -r` when possible
[babeltrace.git] / tests / utils / utils.sh
index 9291db8833e6a8340e0452276d2714788ccd2ed5..393cf1633b3da3061a78e2f0b6b01f499c291ea2 100644 (file)
@@ -359,13 +359,13 @@ bt_grep() {
 # ok() with the test name `$3` on the result of bt_grep() matching the
 # pattern `$1` within the file `$2`.
 bt_grep_ok() {
-       local pattern=$1
-       local file=$2
-       local test_name=$3
+       local -r pattern=$1
+       local -r file=$2
+       local -r test_name=$3
 
        bt_grep --silent "$pattern" "$file"
 
-       local ret=$?
+       local -r ret=$?
 
        if ! ok $ret "$test_name"; then
                {
This page took 0.025171 seconds and 4 git commands to generate.