projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils.sh: expand `${extra_details_args[@]}` conditionally
[babeltrace.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 04b45203a69b411047fef6af868c40144da8623b..36c75fe05a350cf5f172a1ecde769ee14f878c02 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-241,7
+241,8
@@
bt_diff_details_ctf_single() {
expected_stderr_file="/dev/null"
# Compare using the CLI with `sink.text.details`
expected_stderr_file="/dev/null"
# Compare using the CLI with `sink.text.details`
- bt_diff_cli "$expected_stdout_file" "$expected_stderr_file" "$trace_dir" "-c" "sink.text.details" "${extra_details_args[@]}"
+ bt_diff_cli "$expected_stdout_file" "$expected_stderr_file" "$trace_dir" \
+ "-c" "sink.text.details" "${extra_details_args[@]+${extra_details_args[@]}}"
}
# Calls bt_diff_details_ctf_single(), except that "$1" is the path to a
}
# Calls bt_diff_details_ctf_single(), except that "$1" is the path to a
@@
-267,7
+268,8
@@
bt_diff_details_ctf_gen_single() {
fi
# Compare using the CLI with `sink.text.details`
fi
# Compare using the CLI with `sink.text.details`
- bt_diff_details_ctf_single "$expected_stdout_file" "$temp_trace_dir" "${extra_details_args[@]}"
+ bt_diff_details_ctf_single "$expected_stdout_file" "$temp_trace_dir" \
+ "${extra_details_args[@]+${extra_details_args[@]}}"
ret=$?
rm -rf "$temp_trace_dir"
return $ret
ret=$?
rm -rf "$temp_trace_dir"
return $ret
This page took
0.024029 seconds
and
4
git commands to generate.