From 8fda3eaa3b3d2a4776023ab6fe7b7d04067dd341 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Thu, 23 Oct 2025 21:04:26 -0700 Subject: [PATCH] Fixed bug in test when run on Windows --- tests/cli_subcommands.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/cli_subcommands.rs b/tests/cli_subcommands.rs index d475bc2..c2a830c 100644 --- a/tests/cli_subcommands.rs +++ b/tests/cli_subcommands.rs @@ -5,7 +5,10 @@ // and can be invoked with various argument combinations. use assert_cmd::Command; -use predicates::{prelude::PredicateBooleanExt, str::contains}; +use predicates::{ + prelude::PredicateBooleanExt, + str::{contains, is_match}, +}; // ============================================================================= // GitHub Scan Subcommand Tests @@ -499,7 +502,7 @@ mod bitbucket { .unwrap() .args(["scan", "bitbucket", "--help"]) .assert() - .stdout(contains("kingfisher scan bitbucket [OPTIONS]")); + .stdout(is_match(r"kingfisher(\\.exe)? scan bitbucket \[OPTIONS\]").unwrap()); } #[test]