pub fn runs_root() -> PathBufExpand description
Resolve the parent directory that holds all test-run subdirectories.
Resolution order:
crate::KTSTR_RUNS_ROOT_ENV(absolute) — thecargo ktstrorchestrator stamps this once at startup so its footer /stats/replayreads AND the child test processes’ sidecar writes resolve the SAME directory regardless of CWD. This is the primary path undercargo ktstr.{CARGO_TARGET_DIR}/ktstrwhen that env is set non-empty.target/ktstr(CWD-relative) — the rawcargo nextest runfallback. CWD-relative is fragile across a Cargo workspace (the test binary’s CWD is the package dir, which differs from a workspace-root invocation), which is exactly why the orchestrator pins the absolute override above; raw nextest has no footer to mismatch, so the fallback is acceptable there.
Used by cargo ktstr stats / replay and the post-run footer to
enumerate runs without reconstructing a specific run key.