projects
/
babeltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b347b7a
)
tests/utils/utils.sh: bt_cli(): use `local -r` when possible
author
Philippe Proulx
<eeppeliteloop@gmail.com>
Fri, 10 Nov 2023 04:12:59 +0000
(23:12 -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: I999dd0d6f6781344db905aad46b5ff2ea6812be2
tests/utils/utils.sh
patch
|
blob
|
blame
|
history
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 73cacdd05888ff7992b1e784a10c2c107b930786..b568590affd9f69a9ed615a42aba525d79025a9c 100644
(file)
--- 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"
This page took
0.026073 seconds
and
4
git commands to generate.