From 3a472fc8a21a38699bb6a81347e4e14427d5bf9f Mon Sep 17 00:00:00 2001 From: cblmemo Date: Thu, 16 Jan 2025 17:08:31 -0800 Subject: [PATCH] fix `-` for endpoint output --- tests/smoke_tests/test_sky_serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/smoke_tests/test_sky_serve.py b/tests/smoke_tests/test_sky_serve.py index 7eb02f6ce64..cb722ef52e8 100644 --- a/tests/smoke_tests/test_sky_serve.py +++ b/tests/smoke_tests/test_sky_serve.py @@ -84,7 +84,7 @@ def _get_service_name() -> str: _SERVE_ENDPOINT_WAIT = ( 'export ORIGIN_SKYPILOT_DEBUG=$SKYPILOT_DEBUG; export SKYPILOT_DEBUG=0; ' 'endpoint=$(sky serve status --endpoint {name}); ' - 'until ! echo "$endpoint" | grep "Controller is initializing"; ' + 'until ! echo "$endpoint" | grep -qE "Controller is initializing|^-$"; ' 'do echo "Waiting for serve endpoint to be ready..."; ' 'sleep 5; endpoint=$(sky serve status --endpoint {name}); done; ' 'export SKYPILOT_DEBUG=$ORIGIN_SKYPILOT_DEBUG; echo "$endpoint"')