From 784a0f89193123c7d396169288375f1e26d6f62f Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud Date: Wed, 17 Jul 2024 13:31:12 +0800 Subject: [PATCH] fix error catch --- .github/workflows/run_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 805e6b12..a46aed33 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -39,8 +39,8 @@ jobs: response=0 else echo "test intel vm status" - response=$(curl --silent --fail http://$INTEL_SERVER/gpu/runner/status/available) - if [[ $? -ne 0 ]]; then + response=$(curl --silent --fail http://$INTEL_SERVER/gpu/runner/status/available) || response=error + if [ "$response" == "error" ]; then echo "test amd vm status" response=$(curl --silent --fail http://${AMD_SERVER}/gpu/runner/status/available) fi