Skip to content

Commit

Permalink
fix error catch
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud authored Jul 17, 2024
1 parent d2a139b commit 784a0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 784a0f8

Please sign in to comment.