Skip to content

Commit 775ffb2

Browse files
committed
Fix dump uploads to only use file name
1 parent f4f5f28 commit 775ffb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eng/helix/content/RunTests/TestRunner.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,11 @@ public void UploadResults()
336336
{
337337
foreach (var file in Directory.EnumerateFiles("TestResults", "*.dmp", SearchOption.AllDirectories))
338338
{
339-
// Combine the directory name + log name for the copied log file name to avoid overwriting duplicate test names in different test projects
340-
Console.WriteLine($"Copying: {file} to {Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, file)}");
339+
var fileName = Path.GetFileName(file);
340+
Console.WriteLine($"Copying: {file} to {Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, fileName)}");
341341
// Need to copy to HELIX_WORKITEM_UPLOAD_ROOT and HELIX_WORKITEM_UPLOAD_ROOT/../ in order for Azure Devops attachments to link properly and for Helix to store the logs
342-
File.Copy(file, Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, file));
343-
File.Copy(file, Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, "..", file));
342+
File.Copy(file, Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, fileName));
343+
File.Copy(file, Path.Combine(HELIX_WORKITEM_UPLOAD_ROOT, "..", fileName));
344344
}
345345
}
346346
else

0 commit comments

Comments
 (0)