From 9c12f7b20e8623ec6b7f0f737019ee657c9d162c Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Tue, 10 Oct 2023 01:49:06 +0100 Subject: [PATCH] fix(ci): `grep` the Zcash network correctly (#7713) --- .github/workflows/deploy-gcp-tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-gcp-tests.yml b/.github/workflows/deploy-gcp-tests.yml index 81a021b2..8aeee63f 100644 --- a/.github/workflows/deploy-gcp-tests.yml +++ b/.github/workflows/deploy-gcp-tests.yml @@ -604,6 +604,10 @@ jobs: --ssh-flag="-o ConnectionAttempts=20" \ --ssh-flag="-o ConnectTimeout=5" \ --command=' \ + trap "" PIPE; + + # Temporarily disable "set -e" to handle the broken pipe error gracefully + set +e; sudo docker logs \ --tail all \ --follow \ @@ -611,7 +615,7 @@ jobs: head -700 | \ tee --output-error=exit-nopipe /dev/stderr | \ grep --max-count=1 --extended-regexp --color=always \ - -e "Zcash network: ${{ inputs.network }}" \ + "Zcash network: ${{ inputs.network }}"; \ ' # Check that the container executed at least 1 Rust test harness test, and that all tests passed.