Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Nov 21, 2022
1 parent c77fe67 commit ecb4d6e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,8 @@ def test_spot_cancellation():
(f's=$(aws ec2 describe-instances --region {region} '
f'--filters Name=tag:ray-cluster-name,Values={name}* '
f'--query Reservations[].Instances[].State[].Name '
'--output text) && printf "$s" && echo; [[ -z "$s" ]] || [[ "$s" == "terminated" ]]'),
'--output text) && printf "$s" && echo; [[ -z "$s" ]] || [[ "$s" == "terminated" ]]'
),
# Test cancelling the spot cluster during spot job being setup.
f'sky spot launch --cloud aws --region {region} -n {name}-2 tests/test_yamls/long_setup.yaml -y -d',
'sleep 300',
Expand All @@ -882,7 +883,8 @@ def test_spot_cancellation():
(f's=$(aws ec2 describe-instances --region {region} '
f'--filters Name=tag:ray-cluster-name,Values={name}-2* '
f'--query Reservations[].Instances[].State[].Name '
'--output text) && printf "$s" && echo; [[ -z "$s" ]] || [[ "$s" == "terminated" ]]'),
'--output text) && printf "$s" && echo; [[ -z "$s" ]] || [[ "$s" == "terminated" ]]'
),
# Test cancellation during spot job is recovering.
f'sky spot launch --cloud aws --region {region} -n {name}-3 "sleep 1000" -y -d',
'sleep 300',
Expand All @@ -902,7 +904,8 @@ def test_spot_cancellation():
(f's=$(aws ec2 describe-instances --region {region} '
f'--filters Name=tag:ray-cluster-name,Values={name}-3* '
f'--query Reservations[].Instances[].State[].Name '
'--output text) && printf "$s" && echo; [[ -z "$s" ]] || [[ "$s" == "terminated" ]]'),
'--output text) && printf "$s" && echo; [[ -z "$s" ]] || [[ "$s" == "terminated" ]]'
),
])
run_one_test(test)

Expand Down

0 comments on commit ecb4d6e

Please sign in to comment.