Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ifbe0ccbd2c42d929331eb87e5f7743083d9c1a1a
# ok() with the test name `$3` on the result of bt_grep() matching the
# pattern `$1` within the file `$2`.
bt_grep_ok() {
# 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"
bt_grep --silent "$pattern" "$file"
if ! ok $ret "$test_name"; then
{
if ! ok $ret "$test_name"; then
{