Skip to content

Commit

Permalink
Use short, random name
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Friedrich committed Jan 9, 2023
1 parent 1d8d072 commit 63d9ab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lombiq.Tests.UI/Services/UITestExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ private static string PrepareDumpFolder(

var dumpRootPath = Path.Combine(dumpConfiguration.DumpsDirectoryPath, dumpFolderNameBase);

dumpRootPath = dumpRootPath.Length > 10 ? Guid.NewGuid().ToString("N")[..12] : dumpRootPath;

DirectoryHelper.SafelyDeleteDirectoryIfExists(dumpRootPath);

// Probe creating the directory. At least on Windows this can still fail with "The filename, directory name, or
Expand Down

0 comments on commit 63d9ab3

Please sign in to comment.