Quick fix cargo dev bless

This commit is contained in:
Yoshitomo Nakanishi 2021-02-22 12:32:41 +09:00
parent 728f3976f0
commit 5fe3b6c41a

View File

@ -42,9 +42,10 @@ pub fn bless(ignore_timestamp: bool) {
.for_each(|f| { .for_each(|f| {
let test_name = f.path().strip_prefix(test_suite_dir).unwrap(); let test_name = f.path().strip_prefix(test_suite_dir).unwrap();
for &ext in &["stdout", "stderr", "fixed"] { for &ext in &["stdout", "stderr", "fixed"] {
let test_name_ext = format!("stage-id.{}", ext);
update_reference_file( update_reference_file(
f.path().with_extension(ext), f.path().with_extension(ext),
test_name.with_extension(ext), test_name.with_extension(test_name_ext),
ignore_timestamp, ignore_timestamp,
); );
} }