Skip to content

Commit

Permalink
once more
Browse files Browse the repository at this point in the history
  • Loading branch information
escoand committed Jun 17, 2024
1 parent 996388d commit 156014a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test-kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ endtoend() {
shift 3
set -x
# shellcheck disable=SC2015
if {
curl -ikLsS --noproxy "*" -o "$TMP2" "$@" \
if
! curl -ikLsS --noproxy "*" -o "$TMP2" "$@" \
--connect-to "$DOMAIN:80:127.0.0.1:8080" \
--connect-to "$DOMAIN:443:127.0.0.1:8443" \
"http://$DOMAIN/$PAGE" ||
# ignore max redir error
[ $? = 47 ]
} &&
grep -Fq "$RESULT" "$TMP2"; then
[ $? != 47 ] ||
! grep -Fq "$RESULT" "$TMP2"
then
echo "# -> failed:"
cat "$TMP2"
return 1
Expand Down

0 comments on commit 156014a

Please sign in to comment.