mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
refactor(dynamic): improve fallback handling for sandbox restrictions, centralize and enhance stub initialization, and expand test coverage across harnesses
This commit is contained in:
parent
cb3b39d892
commit
68bdd30eca
17 changed files with 546 additions and 68 deletions
|
|
@ -258,8 +258,17 @@ pub fn run_spec(spec: &HarnessSpec, opts: &SandboxOptions) -> Result<RunOutcome,
|
|||
Err(build_sandbox::BuildError::BuildFailed { stderr, attempts }) => {
|
||||
return Err(RunError::BuildFailed { stderr, attempts });
|
||||
}
|
||||
Err(_) => {
|
||||
// Io: fall back to whatever command was set (will likely fail at exec).
|
||||
Err(build_sandbox::BuildError::Io(e)) => {
|
||||
return Err(RunError::BuildFailed {
|
||||
stderr: format!("prepare rust build cache: {e}"),
|
||||
attempts: 1,
|
||||
});
|
||||
}
|
||||
Err(build_sandbox::BuildError::Unsupported) => {
|
||||
return Err(RunError::BuildFailed {
|
||||
stderr: "rust build preparation unsupported on this host".to_owned(),
|
||||
attempts: 1,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue