resolve_test_kernel

Function resolve_test_kernel 

Source
pub fn resolve_test_kernel() -> Result<PathBuf>
Expand description

Find a kernel image for running tests.

Checks KTSTR_TEST_KERNEL env var first (direct image path), then delegates to crate::find_kernel() for cache and filesystem discovery. Returns a typed KernelUnavailable on failure so the #[ktstr_test] macro wrapper can map it onto a clean SKIP banner — generic anyhow errors propagate to the panic arm and surface as confusing test failures when the binary runs outside cargo ktstr test.