From ad6b6f516d71d78e6c08233efd07ed8cb499695d Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Fri, 19 Nov 2021 22:56:31 -0800 Subject: [PATCH] tests: update smoke_test, broken by commit 83c051984ea3 --- tests/smoke_test.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/smoke_test.rs b/tests/smoke_test.rs index 099c77961..1d6c57c26 100644 --- a/tests/smoke_test.rs +++ b/tests/smoke_test.rs @@ -90,7 +90,12 @@ $", testutils::CommandRunner::new(&repo_path).run(vec!["describe", "-m", "add some files"]); assert_eq!(output.status, 0); let stdout_string = output.stdout_string(); - let output_regex = Regex::new("^Working copy now at: [[:xdigit:]]+ add some files\n$").unwrap(); + let output_regex = Regex::new( + "^Working copy now at: [[:xdigit:]]+ add some files +Added 0 files, modified 0 files, removed 0 files +$", + ) + .unwrap(); assert!( output_regex.is_match(&stdout_string), "output was: {}", @@ -101,7 +106,12 @@ $", let output = testutils::CommandRunner::new(&repo_path).run(vec!["close"]); assert_eq!(output.status, 0); let stdout_string = output.stdout_string(); - let output_regex = Regex::new("^Working copy now at: [[:xdigit:]]+ \n$").unwrap(); + let output_regex = Regex::new( + "^Working copy now at: [[:xdigit:]]+ +Added 0 files, modified 0 files, removed 0 files +$", + ) + .unwrap(); assert!( output_regex.is_match(&stdout_string), "output was: {}",