Commit d86d55e51fc2d35ff3a829d41c8ec1c83570cd40

Anthony Green 2022-09-05T07:15:38

Tweak test for host availability

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index aeee0da..9cb0e70 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -129,7 +129,7 @@ jobs:
         run: |
           set +e
           ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ConnectionAttempts=3 -i /tmp/cfk -p ${{ matrix.CFARM_PORT }} ${{ secrets.CFARM_USERNAME }}@${{ matrix.CFARM_HOST }} "mkdir -p t/$GITHUB_RUN_NUMBER"
-          if test $? -eq 255; then
+          if test $? -ne 0; then
             echo "Remote host is unavailable."
             exit 0
           fi