test_e2e.sh: remove useless cats

Fixes SC2002. Part of #891.
This commit is contained in:
Raúl Benencia 2024-06-23 10:34:24 -07:00 committed by Tim Hockin
parent bfe0a0bc17
commit f41adab119
1 changed files with 2 additions and 2 deletions

View File

@ -102,14 +102,14 @@ function assert_file_contains() {
}
function assert_file_lines_eq() {
N=$(cat "$1" | wc -l)
N=$(wc -l < "$1")
if (( "$N" != "$2" )); then
fail "$1 is not $2 lines: $N"
fi
}
function assert_file_lines_ge() {
N=$(cat "$1" | wc -l)
N=$(wc -l < "$1")
if (( "$N" < "$2" )); then
fail "$1 is not at least $2 lines: $N"
fi