From ecb4d6e3a702938418eee552816ed23564a5b59c Mon Sep 17 00:00:00 2001 From: Zhanghao Wu Date: Sun, 20 Nov 2022 17:43:24 -0800 Subject: [PATCH] format --- tests/test_smoke.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_smoke.py b/tests/test_smoke.py index a965e8de8095..26e3bd808c9e 100644 --- a/tests/test_smoke.py +++ b/tests/test_smoke.py @@ -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', @@ -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', @@ -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)