From 55ea9383d56788d5947b812e070967d16356c4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Thu, 16 Nov 2023 09:51:38 +0100 Subject: [PATCH] feat(dir): change test names to just hash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- src/fs/dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/dir.rs b/src/fs/dir.rs index 04947cb..9db3149 100644 --- a/src/fs/dir.rs +++ b/src/fs/dir.rs @@ -57,7 +57,7 @@ pub fn dump_dir(dump_dir: &str, output_strings: Vec) { .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())