Ask the host daemon itself: still running, not stopping, and the parent's * committed client still admitted. A foreign-namespace install leaves this * daemon serving, so a slow reply on a loaded runner must not be misread as * "drained" (the flaky failure this fixture showed): a mute attempt is * repeated until the daemon answers, while a drained daemon is unreachable or * reports stopping, w
| 1930 | * repeated until the daemon answers, while a drained daemon is unreachable or |
| 1931 | * reports stopping, which decides at once. */ |
| 1932 | static bool cli_scope_host_serving(const cli_scope_fixture_t *fixture) { |
| 1933 | cli_scope_status_probe_t probe = {.fixture = fixture}; |
| 1934 | return fixture->endpoint && cli_scope_until_answered(cli_scope_status_attempt, &probe) && |
| 1935 | !probe.status.stopping && probe.status.committed_clients == 1; |
| 1936 | } |
| 1937 | |
| 1938 | static int cli_scope_install(cli_scope_fixture_t *fixture, const char *home, const char *cache, |
| 1939 | const char *bin_dir, bool skip_binary) { |
no test coverage detected