mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 06:02:52 -04:00
Handle non-zero return codes in statschannel test
This commit is contained in:
parent
4a87b44196
commit
cde02fdb6a
1 changed files with 4 additions and 4 deletions
|
|
@ -394,7 +394,7 @@ EOF
|
|||
lines=$(grep -c "^<statistics version" nc.out$n)
|
||||
test "$lines" = 2 || ret=1
|
||||
# keep-alive not needed in HTTP/1.1, second response has close
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n)
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n || true)
|
||||
test "$lines" = 0 || ret=1
|
||||
lines=$(grep -c "^Connection: close" nc.out$n)
|
||||
test "$lines" = 1 || ret=1
|
||||
|
|
@ -426,7 +426,7 @@ EOF
|
|||
lines=$(grep -c "^<statistics version" nc.out$n)
|
||||
test "$lines" = 2 || ret=1
|
||||
# keep-alive not needed in HTTP/1.1, second response has close
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n)
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n || true)
|
||||
test "$lines" = 0 || ret=1
|
||||
lines=$(grep -c "^Connection: close" nc.out$n)
|
||||
test "$lines" = 1 || ret=1
|
||||
|
|
@ -451,7 +451,7 @@ EOF
|
|||
lines=$(grep -c "^<statistics version" nc.out$n)
|
||||
test "$lines" = 2 || ret=1
|
||||
# first response has keep-alive, second has close
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n)
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n || true)
|
||||
test "$lines" = 1 || ret=1
|
||||
lines=$(grep -c "^Connection: close" nc.out$n)
|
||||
test "$lines" = 1 || ret=1
|
||||
|
|
@ -477,7 +477,7 @@ EOF
|
|||
lines=$(grep -c "^<statistics version" nc.out$n)
|
||||
test "$lines" = 1 || ret=1
|
||||
# no keep-alive, one close
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n)
|
||||
lines=$(grep -c "^Connection: Keep-Alive" nc.out$n || true)
|
||||
test "$lines" = 0 || ret=1
|
||||
lines=$(grep -c "^Connection: close" nc.out$n)
|
||||
test "$lines" = 1 || ret=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue