Skip to content

Commit

Permalink
grep across stdout and stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Walkin committed Sep 30, 2016
1 parent 54a9f9b commit 514271f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/check-tcpkali-operation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ check() {
PORT=$((PORT+1))
local rest_opts="-T1s --source-ip 127.1 -l${PORT} 127.1:${PORT}"
echo "Test ${testno}.srcip: $* ${rest_opts}" >&2
"$@" ${rest_opts} | egrep "$togrep"
"$@" ${rest_opts} 2>&1 | egrep "$togrep"
PORT=$((PORT+1))
local rest_opts="-T1s -l${PORT} 127.1:${PORT}"
echo "Test ${testno}.autoip: $* ${rest_opts}" >&2
"$@" ${rest_opts} | egrep "$togrep"
"$@" ${rest_opts} 2>&1 | egrep "$togrep"
}


Expand Down

0 comments on commit 514271f

Please sign in to comment.