Skip to content

Commit

Permalink
fix smoke
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Nov 25, 2024
1 parent 08891df commit 10c5f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -3540,7 +3540,7 @@ def test_managed_jobs_inline_env(generic_cloud: str):
f'sky jobs launch -n {name} -y --cloud {generic_cloud} --env TEST_ENV="hello world" -- "echo "\\$TEST_ENV"; ([[ ! -z \\"\$TEST_ENV\\" ]] && [[ ! -z \\"\${constants.SKYPILOT_NODE_IPS}\\" ]] && [[ ! -z \\"\${constants.SKYPILOT_NODE_RANK}\\" ]] && [[ ! -z \\"\${constants.SKYPILOT_NUM_NODES}\\" ]]) || exit 1"',
'sleep 20',
f'{_GET_JOB_QUEUE} | grep {name} | grep SUCCEEDED',
f'JOB_ID=$(sky jobs list -n {name} | grep {name} | head -n1 | awk \'{{print $1}}\') && '
f'JOB_ID=$(sky jobs queue -n {name} | grep {name} | head -n1 | awk \'{{print $1}}\') && '
# Test that logs are still available after the job finishes.
's=$(sky jobs logs $JOB_ID) && echo "$s" && echo "$s" | grep "hello world" && '
# Make sure we skip the unnecessary logs.
Expand Down

0 comments on commit 10c5f21

Please sign in to comment.