Skip to content

Commit 1bf7eea

Browse files
committed
Fix issue when filename has [ or ] characters
1 parent 3b6a741 commit 1bf7eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet-retest/TrxCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public override int Execute(CommandContext context, TrxSettings settings)
111111
// Process from newest files to oldest so that newest result we find (by test id) is the one we keep
112112
foreach (var trx in Directory.EnumerateFiles(path, "*.trx", search).OrderByDescending(File.GetLastWriteTime))
113113
{
114-
ctx.Status($"Discovering test results in {Path.GetFileName(trx)}...");
114+
ctx.Status($"Discovering test results in {Path.GetFileName(trx).EscapeMarkup()}...");
115115
using var file = File.OpenRead(trx);
116116
// Clears namespaces
117117
var doc = HtmlDocument.Load(file, new HtmlReaderSettings { CaseFolding = Sgml.CaseFolding.None });

0 commit comments

Comments
 (0)