Skip to content

Commit

Permalink
Fix issue when filename has [ or ] characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Aug 24, 2024
1 parent 3b6a741 commit dbe4fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotnet-retest/TrxCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public override int Execute(CommandContext context, TrxSettings settings)
// Process from newest files to oldest so that newest result we find (by test id) is the one we keep
foreach (var trx in Directory.EnumerateFiles(path, "*.trx", search).OrderByDescending(File.GetLastWriteTime))
{
ctx.Status($"Discovering test results in {Path.GetFileName(trx)}...");
ctx.Status($"Discovering test results in {Path.GetFileName(trx).EscapeMarkup()}...");
using var file = File.OpenRead(trx);
// Clears namespaces
var doc = HtmlDocument.Load(file, new HtmlReaderSettings { CaseFolding = Sgml.CaseFolding.None });
Expand Down

0 comments on commit dbe4fb7

Please sign in to comment.