Skip to content

Commit

Permalink
Tee with append
Browse files Browse the repository at this point in the history
  • Loading branch information
hjkatz committed Dec 19, 2024
1 parent 7ffe657 commit 8fbe4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/chainsaw/bindings/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ spec:
touch result.out
# 2>/dev/null to suppress kubectl default output
kubectl run --restart=Never --rm --attach --image=dersimn/netutils net-utils -- curl --silent --show-error --connect-timeout 10 --retry 3 --retry-all-errors --retry-delay 5 http://assets-allowed.e2e/hello_world.txt | tee result.out
kubectl run --restart=Never --rm --attach --image=dersimn/netutils net-utils -- curl --silent --show-error --connect-timeout 10 --retry 3 --retry-all-errors --retry-delay 5 http://assets-allowed.e2e/hello_world.txt | tee -a result.out
[ $? -eq 0 ] || { echo "Failed to retrieve assets"; exit 1; }
Expand Down Expand Up @@ -174,7 +174,7 @@ spec:
# 2>/dev/null to suppress kubectl default output
# first line is the contents, last line in "deleted pod" message
kubectl run --restart=Never --rm --attach --image=docker.io/dersimn/netutils net-utils -- nc -zv tcp-echo.e2e 4242 | tee result.out
kubectl run --restart=Never --rm --attach --image=docker.io/dersimn/netutils net-utils -- nc -zv tcp-echo.e2e 4242 | tee -a result.out
[ $? -eq 0 ] || { echo "Failed to establish tcp connection"; exit 1; }
Expand Down

0 comments on commit 8fbe4ff

Please sign in to comment.