projects
/
babeltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b5f89
)
tests/utils/utils.sh: bt_grep_ok(): use `local -r` when possible
author
Philippe Proulx
<eeppeliteloop@gmail.com>
Fri, 10 Nov 2023 04:16:22 +0000
(23:16 -0500)
committer
Philippe Proulx
<eeppeliteloop@gmail.com>
Wed, 7 Feb 2024 21:25:56 +0000
(16:25 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ifbe0ccbd2c42d929331eb87e5f7743083d9c1a1a
tests/utils/utils.sh
patch
|
blob
|
blame
|
history
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 9291db8833e6a8340e0452276d2714788ccd2ed5..393cf1633b3da3061a78e2f0b6b01f499c291ea2 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-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.0253100000000001 seconds
and
4
git commands to generate.