mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-25 05:29:39 +00:00
tests: update smoke_test, broken by commit 83c051984e
This commit is contained in:
parent
6b0a568e44
commit
ad6b6f516d
1 changed files with 12 additions and 2 deletions
|
@ -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: {}",
|
||||
|
|
Loading…
Reference in a new issue