Skip to content

Commit 7ea8f88

Browse files
committed
C#: Allow exe and dll files for dotnet test to start with any character.
1 parent 506b911 commit 7ea8f88

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

csharp/tools/tracing-config.lua

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,15 @@ function RegisterExtractorPack(id)
8080
end
8181
end
8282

83-
-- for `dotnet test`, we should not append `-p:UseSharedCompilation=false` to the command line
84-
-- if an `exe` or `dll` is passed as an argument as the call is forwarded to vstest.
85-
if testMatch and (arg:match('%.exe$') or arg:match('%.dll')) then
86-
match = false
87-
break
88-
end
89-
9083
-- we have found a sub-command, ignore all strings that look like sub-command names from now on
9184
inSubCommandPosition = false
9285
end
86+
-- for `dotnet test`, we should not append `-p:UseSharedCompilation=false` to the command line
87+
-- if an `exe` or `dll` is passed as an argument as the call is forwarded to vstest.
88+
if testMatch and (arg:match('%.exe$') or arg:match('%.dll')) then
89+
match = false
90+
break
91+
end
9392
-- if we see a separator to `dotnet run`, inject just prior to the existing separator
9493
if arg == '--' then
9594
dotnetRunNeedsSeparator = false

0 commit comments

Comments
 (0)