Skip to content

Commit

Permalink
echo vm detail
Browse files Browse the repository at this point in the history
  • Loading branch information
zpoint committed Dec 17, 2024
1 parent b5bd4d8 commit a6706e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/smoke_tests/test_cluster_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,8 @@ def test_azure_spot_instance_verification():
test = smoke_tests_utils.Test(
'azure-spot-verification',
[
f'TARGET_VM_NAME=\'{name}\'; '
f'sky launch -c {name} --cloud azure tests/test_yamls/minimal.yaml --use-spot -y',
f'sky logs {name} 1 --status', f'TARGET_VM_NAME=\'{name}\'; '
'VM_INFO=$(az vm list --query \'[?contains(name, "$TARGET_VM_NAME")].{Name:name, ResourceGroup:resourceGroup}\' -o tsv); '
'[[ -z "$VM_INFO" ]] && exit 1; '
'FULL_VM_NAME=$(echo "$VM_INFO" | awk \'{print $1}\'); '
Expand Down

0 comments on commit a6706e4

Please sign in to comment.