Skip to content

Commit f4c05f7

Browse files
guhetierCopilot
andcommitted
Fix UseXdp parameter type in test.ps1 (switch -> string)
test.ps1 declared -UseXdp as [switch] with a string default of "", which fails PowerShell argument transformation on every invocation that does not pass -UseXdp, and mis-binds -UseXdp <version> as a positional argument when it does (landing on -IsolationMode). UseXdp carries an XDP version string (e.g. 'xdp-v1.1'), so declare it as [string] to match its usage and the other scripts (prepare-machine.ps1, spin.ps1, recvfuzz.ps1). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f8113a8 commit f4c05f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ param (
185185
[switch]$XdpMapMode = $false,
186186

187187
[Parameter(Mandatory = $false)]
188-
[switch]$UseXdp = "",
188+
[string]$UseXdp = "",
189189

190190
[Parameter(Mandatory = $false)]
191191
[switch]$UseQtip = $false,

0 commit comments

Comments
 (0)