From 40aa3010a7df1d5ecbdb4a48810be40e4456c2e0 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Sun, 15 Nov 2026 10:53:29 -0700 Subject: [PATCH] tools: the flasher-plan vectors compare Windows paths with POSIX separators --- crates/rns-tools/src/commands/rnodeconf/flash.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/rns-tools/src/commands/rnodeconf/flash.rs b/crates/rns-tools/src/commands/rnodeconf/flash.rs index a460be3..723e005 100644 --- a/crates/rns-tools/src/commands/rnodeconf/flash.rs +++ b/crates/rns-tools/src/commands/rnodeconf/flash.rs @@ -436,7 +436,15 @@ mod tests { let platform = case["platform"].as_u64().unwrap() as u8; let expected: Option> = serde_json::from_value(case["argv"].clone()).unwrap(); - let got = plan_flasher(platform, fw, &ctx).map(|plan| plan.argv()); + // Upstream's vectors hold POSIX paths; on Windows the same plan joins with `\`. + let got = plan_flasher(platform, fw, &ctx).map(|plan| { + let argv: Vec = plan.argv(); + if cfg!(windows) { + argv.into_iter().map(|a| a.replace('\\', "/")).collect() + } else { + argv + } + }); if got != expected { mismatches.push(format!( "{fw} @ {}\n upstream {expected:?}\n rust {got:?}",