Skip to content

Commit

Permalink
feat(dir): change test names to just hash
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk committed Nov 16, 2023
1 parent 803d2f5 commit 55ea938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn dump_dir(dump_dir: &str, output_strings: Vec<String>) {
.replace([' ', '/'], "_") // This is to handle the "tests/itest" in ARGS
.replace(&['<', '>', ':', '"', '/', '\\', '|', '?', '*'][..], "_"); // Sanitize for Windows

let file_path = dump_path.join(format!("ptest_{}_{:x}.toml", args, hash(&args)));
let file_path = dump_path.join(format!("ptest_{:x}.toml", hash(&args)));
let mut file = File::create(&file_path)
.unwrap_or_else(|_| panic!("Failed to create file at {:?}", file_path));
file.write_all(content.as_bytes())
Expand Down

0 comments on commit 55ea938

Please sign in to comment.