feat(cli): make test --update rewrite all corpus files
This commit is contained in:
parent
93d793d249
commit
0d4d854809
1 changed files with 1 additions and 2 deletions
|
|
@ -1066,7 +1066,6 @@ fn run_tests(
|
|||
return Ok(true);
|
||||
}
|
||||
|
||||
let failure_count = test_summary.parse_failures.len();
|
||||
let mut ran_test_in_group = false;
|
||||
|
||||
let matches_filter = |name: &str, file_name: &Option<String>, opts: &TestOptions| {
|
||||
|
|
@ -1130,7 +1129,7 @@ fn run_tests(
|
|||
test_summary.parse_results.pop_traversal();
|
||||
|
||||
if let Some(file_path) = file_path {
|
||||
if opts.update && test_summary.parse_failures.len() - failure_count > 0 {
|
||||
if opts.update {
|
||||
write_tests(&file_path, corrected_entries)?;
|
||||
}
|
||||
corrected_entries.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue