mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-07 03:00:29 +00:00
fix(ci): stabilize graphviz Rust checks
Some checks are pending
Rust / Format (push) Waiting to run
Rust / Clippy (push) Waiting to run
Rust / Test (Linux) (push) Waiting to run
Rust / Test (macOS) (push) Waiting to run
TypeScript / Typecheck (push) Waiting to run
TypeScript / Test (push) Waiting to run
TypeScript / Build (push) Waiting to run
Some checks are pending
Rust / Format (push) Waiting to run
Rust / Clippy (push) Waiting to run
Rust / Test (Linux) (push) Waiting to run
Rust / Test (macOS) (push) Waiting to run
TypeScript / Typecheck (push) Waiting to run
TypeScript / Test (push) Waiting to run
TypeScript / Build (push) Waiting to run
Keep the render-graph CLI integration test explicitly documented for synchronous stdio subprocess usage, and make the garbage-stdout server test drain stdin before returning invalid output so the Linux test path stays deterministic.
This commit is contained in:
parent
3e9683b6a0
commit
1ab1327f96
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
#![expect(
|
||||
clippy::disallowed_methods,
|
||||
reason = "These CLI integration tests intentionally spawn the real fabro binary and stream DOT over stdio to verify the internal render subprocess contract."
|
||||
)]
|
||||
|
||||
use std::io::Write;
|
||||
use std::process::{Command, Stdio};
|
||||
|
||||
|
|
|
|||
|
|
@ -8048,7 +8048,8 @@ slug = "fabro"
|
|||
#[cfg(unix)]
|
||||
#[tokio::test]
|
||||
async fn render_dot_subprocess_returns_protocol_violation_for_garbage_stdout() {
|
||||
let (_dir, script_path) = write_test_executable("#!/bin/sh\nprintf 'garbage'\nexit 0\n");
|
||||
let (_dir, script_path) =
|
||||
write_test_executable("#!/bin/sh\ncat >/dev/null\nprintf 'garbage'\nexit 0\n");
|
||||
|
||||
let result = render_dot_subprocess("digraph { a -> b }", Some(&script_path)).await;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue