← Về thư mục
tests/test_cli_stop_slow_daemon.py
- _spawn_sigterm_ignoring_child · function · L43-L62 — def _spawn_sigterm_ignoring_child() -> subprocess.Popen
- slow_daemon · function · L66-L83 — def slow_daemon()
- test_stop_timeout_keeps_pidfile_and_fails · function · L86-L97 — def test_stop_timeout_keeps_pidfile_and_fails(slow_daemon, capsys)
- test_stop_timeout_leaves_status_and_retry_able_to_see_the_daemon · function · L100-L123 — def test_stop_timeout_leaves_status_and_retry_able_to_see_the_daemon( slow_daemon, capsys )
- test_stop_force_escalates_to_sigkill · function · L126-L139 — def test_stop_force_escalates_to_sigkill(slow_daemon, capsys)
- test_stop_of_a_promptly_exiting_daemon_still_reports_success · function · L142-L157 — def test_stop_of_a_promptly_exiting_daemon_still_reports_success(monkeypatch, capsys)
- _wait_for_zombie · function · L166-L185 — def _wait_for_zombie(proc: subprocess.Popen, *, seconds: float = 10.0) -> None
- test_pid_alive_reads_an_unreaped_zombie_as_exited · function · L189-L207 — def test_pid_alive_reads_an_unreaped_zombie_as_exited()
- test_stop_of_a_daemon_nothing_reaps_returns_promptly · function · L211-L242 — def test_stop_of_a_daemon_nothing_reaps_returns_promptly(capsys)
- test_the_linux_branch_reads_state_after_the_last_parenthesis · function · L249-L270 — def test_the_linux_branch_reads_state_after_the_last_parenthesis( monkeypatch, state, alive )
- fake_open · function · L262-L267 — def fake_open(path, args, *kwargs)
- test_stop_keeps_waiting_past_the_sigterm_grace_for_a_daemon_still_exiting · function · L273-L319 — def test_stop_keeps_waiting_past_the_sigterm_grace_for_a_daemon_still_exiting( monkeypatch, capsys )
- test_stop_waits_thirty_seconds_by_default_and_documents_timeout · function · L322-L331 — def test_stop_waits_thirty_seconds_by_default_and_documents_timeout(capsys)
- test_stop_rejects_a_timeout_that_is_not_a_positive_finite_number · function · L335-L341 — def test_stop_rejects_a_timeout_that_is_not_a_positive_finite_number(value, capsys)
- test_serve_bind_failure_prints_no_success_banner · function · L344-L369 — def test_serve_bind_failure_prints_no_success_banner(monkeypatch, capsys)
- test_stop_survives_the_pid_exiting_between_check_and_signal · function · L372-L388 — def test_stop_survives_the_pid_exiting_between_check_and_signal(monkeypatch, capsys)
- test_sigterm_handler_preserves_state_files_until_teardown_completes · function · L391-L407 — def test_sigterm_handler_preserves_state_files_until_teardown_completes()
- test_serve_pidfile_covers_the_build_window · function · L410-L439 — def test_serve_pidfile_covers_the_build_window(monkeypatch, capsys)
- probe · function · L425-L427 — def probe(_cfg)
- _failing_build · function · L442-L448 — def _failing_build(monkeypatch, exc: OSError)
- test_serve_privileged_port_prints_one_clear_error · function · L451-L466 — def test_serve_privileged_port_prints_one_clear_error(monkeypatch, capsys)
- test_serve_unwritable_data_dir_eacces_still_raises · function · L469-L481 — def test_serve_unwritable_data_dir_eacces_still_raises(monkeypatch)
- test_serve_unavailable_address_prints_one_clear_error · function · L484-L499 — def test_serve_unavailable_address_prints_one_clear_error(monkeypatch, capsys)
- test_serve_drives_the_shared_run_server_lifecycle · function · L502-L523 — def test_serve_drives_the_shared_run_server_lifecycle(monkeypatch, capsys)
- test_stop_grace_period_is_the_shared_process_group_budget · function · L526-L536 — def test_stop_grace_period_is_the_shared_process_group_budget()
- _state_cfg · function · L539-L547 — def _state_cfg(tmp_path)
- test_serve_clear_spares_a_pidfile_owned_by_another_booter · function · L550-L568 — def test_serve_clear_spares_a_pidfile_owned_by_another_booter(tmp_path)
- test_acquire_singleton_is_atomic_single_winner_and_reclaims_stale · function · L571-L588 — def test_acquire_singleton_is_atomic_single_winner_and_reclaims_stale(tmp_path)
- test_serve_arms_the_sigterm_handler_before_the_build · function · L591-L635 — def test_serve_arms_the_sigterm_handler_before_the_build(monkeypatch, capsys)
- recording_signal · function · L608-L611 — def recording_signal(signum, handler)
- build · function · L613-L615 — def build(_cfg)