Skip to content

Commit

Permalink
Fix Linux XDP Merge Conflicts Properly (#4369)
Browse files Browse the repository at this point in the history
* proper fix merge conflicts

* remove unreferenced sudo var
  • Loading branch information
ProjectsByJackHe committed Jun 24, 2024
1 parent 6af6550 commit 8a741dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/secnetperf-helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,12 @@ function Stop-RemoteServerAsyncAwait {
}

function Wait-StartRemoteServerPassive {
param ($FullPath, $RemoteName, $OutputDir)
param ($FullPath, $RemoteName, $OutputDir, $UseSudo)

for ($i = 0; $i -lt 30; $i++) {
Start-Sleep -Seconds 5 | Out-Null
Write-Host "Attempt $i to start the remote server, command: $FullPath -target:$RemoteName"
$Process = Start-LocalTest $FullPath "-target:$RemoteName" $OutputDir
$Process = Start-LocalTest $FullPath "-target:$RemoteName" $OutputDir $UseSudo
$ConsoleOutput = Wait-LocalTest $Process $OutputDir $false 30000 $true
Write-Host "Wait-StartRemoteServerPassive: $ConsoleOutput"
$DidMatch = $ConsoleOutput -match "Completed" # Look for the special string to indicate success.
Expand Down Expand Up @@ -713,8 +713,8 @@ function Invoke-Secnetperf {
$StateDir = "/etc/_state"
}
if ($Environment -eq "azure") {
Start-RemoteServerPassive $Session "$sudo$RemoteDir/$SecNetPerfPath $serverArgs" $StateDir $RunId $SyncerSecret
Wait-StartRemoteServerPassive "$sudo$clientPath" $RemoteName $artifactDir
Start-RemoteServerPassive $Session "$RemoteDir/$SecNetPerfPath $serverArgs" $StateDir $RunId $SyncerSecret
Wait-StartRemoteServerPassive "$clientPath" $RemoteName $artifactDir $useSudo
} else {
$job = Start-RemoteServer $Session "$RemoteDir/$SecNetPerfPath" $serverArgs $useSudo
}
Expand Down

0 comments on commit 8a741dc

Please sign in to comment.