We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264f1e4 commit 085efcfCopy full SHA for 085efcf
xtask/output_files/net.out
231 Bytes
xtask/snapshot_elfs/hints_inner
-16 Bytes
xtask/snapshot_elfs/net
994 KB
xtask/snapshot_elfs/timestamp
8 Bytes
xtask/src/print_snapshot.rs
@@ -30,19 +30,15 @@ pub fn test_single_print_snapshot(name: &str) -> anyhow::Result<()> {
30
let frame_path = format!("xtask/output_files/{}.out", name);
31
let elf_path = format!("xtask/snapshot_elfs/{}", name);
32
33
- let frames = Command::new("cat")
34
- .arg(frame_path)
35
- .stdout(Stdio::piped())
36
- .spawn()
37
- .unwrap();
+ let frames = std::fs::File::open(frame_path)?;
38
39
let actual = run_capturing_stdout(
40
Command::new("defmt-print")
41
.arg("-e")
42
.arg(elf_path)
43
.arg("--log-format")
44
.arg("{L:4} {s}")
45
- .stdin(Stdio::from(frames.stdout.unwrap())),
+ .stdin(Stdio::from(frames)),
46
)
47
.with_context(|| name.to_string())?;
48
0 commit comments