Skip to content

Commit

Permalink
fix: use correct condition and simpler while
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Oct 6, 2023
1 parent be48482 commit 82ea71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sub-deploy-integration-tests-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ jobs:
# Format the mounted disk if the test doesn't use a cached state.
- name: Format ${{ inputs.test_id }} volume
if: ${{ !inputs.needs_zebra_state || !inputs.needs_lwd_state }}
if: ${{ !inputs.needs_zebra_state && !inputs.needs_lwd_state }}
shell: /usr/bin/bash -ex {0}
run: |
gcloud compute ssh ${{ inputs.test_id }}-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} \
Expand All @@ -286,7 +286,7 @@ jobs:
--ssh-flag="-o ConnectTimeout=5" \
--command \
"\
while [[ ! -e /dev/sdb ]] || sudo lsof /dev/sdb &>/dev/null; do \
while sudo lsof /dev/sdb; do \
echo 'Waiting for /dev/sdb to be free...'; \
sleep 10; \
done; \
Expand Down

0 comments on commit 82ea71f

Please sign in to comment.