projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add and use bt_grep
[babeltrace.git]
/
tests
/
cli
/
test-trace-copy.sh
diff --git
a/tests/cli/test-trace-copy.sh
b/tests/cli/test-trace-copy.sh
index e8c9b2c86210a391089953e89733a240ed341d34..a3fb4544bad0f56e2ca21e99db297dc66ba7e336 100755
(executable)
--- a/
tests/cli/test-trace-copy.sh
+++ b/
tests/cli/test-trace-copy.sh
@@
-48,7
+48,7
@@
for path in "${SUCCESS_TRACES[@]}"; do
# duplicate timestamps in the output.
# If there are, we have to sort the text output to make sure it is
# always the same.
# duplicate timestamps in the output.
# If there are, we have to sort the text output to make sure it is
# always the same.
- head -1 "${text_output1}" |
"${BT_TESTS_GREP_BIN}"
"^\[" >/dev/null
+ head -1 "${text_output1}" |
bt_grep
"^\[" >/dev/null
if test $? = 0; then
# shellcheck disable=SC2016
uniq_ts_cnt="$("${BT_TESTS_AWK_BIN}" '{ print $1 }' < "${text_output1}" | sort | uniq | wc -l)"
if test $? = 0; then
# shellcheck disable=SC2016
uniq_ts_cnt="$("${BT_TESTS_AWK_BIN}" '{ print $1 }' < "${text_output1}" | sort | uniq | wc -l)"
This page took
0.023132 seconds
and
4
git commands to generate.