From 8fda3eaa3b3d2a4776023ab6fe7b7d04067dd341 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Thu, 23 Oct 2025 21:04:26 -0700 Subject: [PATCH 1/2] 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] From ea1bd2a02271d889b6e2de814e5b95d62b1e97cb Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Thu, 23 Oct 2025 21:28:37 -0700 Subject: [PATCH 2/2] Fixed bug in test when run on Windows --- tests/cli_subcommands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cli_subcommands.rs b/tests/cli_subcommands.rs index c2a830c..2be09ab 100644 --- a/tests/cli_subcommands.rs +++ b/tests/cli_subcommands.rs @@ -502,7 +502,7 @@ mod bitbucket { .unwrap() .args(["scan", "bitbucket", "--help"]) .assert() - .stdout(is_match(r"kingfisher(\\.exe)? scan bitbucket \[OPTIONS\]").unwrap()); + .stdout(is_match(r"kingfisher(\.exe)? scan bitbucket \[OPTIONS\]").unwrap()); } #[test]