Skip to content

Commit

Permalink
Add underscore in artifact filename
Browse files Browse the repository at this point in the history
Summary: Just making file names looks more appropriate

Reviewed By: rrnewton

Differential Revision: D41769246

fbshipit-source-id: bdceda05f4f7b34f0df1adb1409a591f246d4821
  • Loading branch information
VladimirMakaev authored and facebook-github-bot committed Dec 7, 2022
1 parent 9c43838 commit ba98897
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions hermit-verify/src/common/test_artifacts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl TestArtifacts {
if file_path.as_path().exists() {
let file_name = file_path.file_name();
if let Some(file) = file_name {
let new_file_name = format!("{}{}", run_number, file.to_str().unwrap());
let new_file_name = format!("{}_{}", run_number, file.to_str().unwrap());
let new_file_path = self.test_result_artifact_dir.as_path().join(new_file_name);
std::fs::copy(file_path, new_file_path)?;
}
Expand Down Expand Up @@ -72,16 +72,16 @@ mod test {

let files = std::fs::read_dir(artifactd_dir.path())?;
let expected_artifacts = vec![
format!("{}/1log", artifactd_dir.path().display()),
format!("{}/1std_out", artifactd_dir.path().display()),
format!("{}/1std_err", artifactd_dir.path().display()),
format!("{}/1exit_status", artifactd_dir.path().display()),
format!("{}/1sched", artifactd_dir.path().display()),
format!("{}/2log", artifactd_dir.path().display()),
format!("{}/2std_out", artifactd_dir.path().display()),
format!("{}/2std_err", artifactd_dir.path().display()),
format!("{}/2exit_status", artifactd_dir.path().display()),
format!("{}/2sched", artifactd_dir.path().display()),
format!("{}/1_log", artifactd_dir.path().display()),
format!("{}/1_std_out", artifactd_dir.path().display()),
format!("{}/1_std_err", artifactd_dir.path().display()),
format!("{}/1_exit_status", artifactd_dir.path().display()),
format!("{}/1_sched", artifactd_dir.path().display()),
format!("{}/2_log", artifactd_dir.path().display()),
format!("{}/2_std_out", artifactd_dir.path().display()),
format!("{}/2_std_err", artifactd_dir.path().display()),
format!("{}/2_exit_status", artifactd_dir.path().display()),
format!("{}/2_sched", artifactd_dir.path().display()),
];

let copied_artifacts: Vec<String> = files
Expand Down

0 comments on commit ba98897

Please sign in to comment.