Skip to content

Commit

Permalink
Make tee ignore errors writing to a grep pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jun 29, 2022
1 parent 92913c6 commit c14ebc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-gcp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ jobs:
docker logs \
--tail ${{ env.EXTRA_LOG_LINES }} \
${{ inputs.test_id }} | \
tee /dev/stderr | \
tee --output-error=exit-nopipe /dev/stderr | \
grep --max-count=1 --extended-regexp --color=always \
'test result: .*ok.* [1-9][0-9]* passed.*finished in' && \
exit $(docker wait ${{ inputs.test_id }}) \
Expand Down

0 comments on commit c14ebc3

Please sign in to comment.