always update textcase.file_path (#2432)

This commit is contained in:
Dongjia "toka" Zhang 2024-07-23 15:02:03 +02:00 committed by GitHub
parent c44d361828
commit 7391c6040b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -413,13 +413,7 @@ where
file_name
};
if testcase
.file_path()
.as_ref()
.map_or(true, |path| !path.starts_with(&self.dir_path))
{
*testcase.file_path_mut() = Some(self.dir_path.join(&file_name));
}
*testcase.file_path_mut() = Some(self.dir_path.join(&file_name));
*testcase.filename_mut() = Some(file_name);
if self.meta_format.is_some() {