@@ -64,7 +64,7 @@ function RegisterExtractorPack(id)
64
64
65
65
-- for `dotnet test`, we should not append `-p:UseSharedCompilation=false` to the command line
66
66
-- if an `exe` or `dll` is passed as an argument as the call is forwarded to vstest.
67
- if testMatch and (arg :match (' %.exe$' ) or arg :match (' %.dll' )) then
67
+ if testMatch and (arg :match (' %.exe$' ) or arg :match (' %.dll' )) then
68
68
match = false
69
69
break
70
70
end
@@ -84,10 +84,6 @@ function RegisterExtractorPack(id)
84
84
dotnetRunNeedsSeparator = false
85
85
dotnetRunInjectionIndex = i
86
86
end
87
- -- if we encounter a whitespace, we explicitly need to quote the argument.
88
- if OperatingSystem == ' windows' and arg :match (' %s' ) then
89
- argv [i ] = ' "' .. arg .. ' "'
90
- end
91
87
end
92
88
if match then
93
89
local injections = { ' -p:UseSharedCompilation=false' , ' -p:EmitCompilerGeneratedFiles=true' }
@@ -114,7 +110,7 @@ function RegisterExtractorPack(id)
114
110
invocation = {
115
111
path = AbsolutifyExtractorPath (id , compilerPath ),
116
112
arguments = {
117
- commandLineString = table.concat (argv , " " )
113
+ commandLineString = ArgvToCommandLineString (argv )
118
114
}
119
115
}
120
116
}
@@ -178,7 +174,7 @@ function RegisterExtractorPack(id)
178
174
seenCompilerCall = true
179
175
end
180
176
if seenCompilerCall then
181
- table.insert (extractorArgs , ' " ' .. arg .. ' " ' )
177
+ table.insert (extractorArgs , arg )
182
178
end
183
179
end
184
180
@@ -188,7 +184,7 @@ function RegisterExtractorPack(id)
188
184
invocation = {
189
185
path = AbsolutifyExtractorPath (id , extractor ),
190
186
arguments = {
191
- commandLineString = table.concat (extractorArgs , " " )
187
+ commandLineString = ArgvToCommandLineString (extractorArgs )
192
188
}
193
189
}
194
190
}
0 commit comments