There was still one occasional problem while running cargo test, it would fail sometimes. Added a serial preprocessor to ensure the underlying arduino command didn't run pipelined. That fixed the problem
Some checks failed
CI / Test (Linux) (push) Has been cancelled
CI / Test (Windows MSVC) (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled

This commit is contained in:
Eric Ratliff
2026-02-23 08:17:30 -06:00
parent 7e8d7ecce5
commit 8374cb6079
3 changed files with 151 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ use std::fs;
use std::path::Path;
use std::process::Command;
use tempfile::TempDir;
use serial_test::serial;
use anvil::templates::{TemplateContext, TemplateManager};
use anvil::version::ANVIL_VERSION;
@@ -511,6 +512,7 @@ fn test_inner_run_tests_idempotent() {
// ==========================================================================
#[test]
#[serial]
fn test_build_script_compiles_sketch() {
require_build_script_deps();