diff --git a/tests/conftest.py b/tests/conftest.py index 608482b0..655de403 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -22,12 +22,12 @@ def pytest_sessionstart(session): - subprocess.run(["ray", "stop"], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) - subprocess.run(["ray", "start", "--head", "--disable-usage-stats", "--port=6379"], check=True, + subprocess.run(["ray", "stop"], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + subprocess.run(["ray", "start", "--head", "--disable-usage-stats", "--port=6379"], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) def pytest_sessionfinish(session, exitstatus): - subprocess.run(["ray", "stop"], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + subprocess.run(["ray", "stop"], check=False, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) @pytest.fixture def setup_ray_env(): diff --git a/tests/e2e_test/utils.py b/tests/e2e_test/utils.py index 31329929..b3fda486 100644 --- a/tests/e2e_test/utils.py +++ b/tests/e2e_test/utils.py @@ -159,8 +159,8 @@ def cleanup_ray_env(): cleanup_ray_env_func() def shutdown_llumnix_service_func(): - subprocess.run('pkill -f llumnix.entrypoints.vllm.api_server', shell=True, check=True) - subprocess.run('pkill -f benchmark_serving.py', shell=True, check=True) + subprocess.run('pkill -f llumnix.entrypoints.vllm.api_server', shell=True, check=False) + subprocess.run('pkill -f benchmark_serving.py', shell=True, check=False) @pytest.fixture def shutdown_llumnix_service():