Skip to content

Commit

Permalink
Had to have separate values based on OS
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenge committed Oct 3, 2024
1 parent 064f360 commit 8aecf5d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/BDNPerfTests/run_bdnperftest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ param ($ResultsLine, $columnNum)
$column = $columns | ForEach-Object { $_.Trim() }
$foundValue = $column[$columnNum]

# Have case where put column before the 5th one - differs from Linux to Windows
if ($foundValue -eq "-") {
$columnNum = [int]$columnNum
$columnNum+=1
$foundValue = $column[$columnNum]
}

$foundValue = $foundValue.Trim(' us')
$foundValue = $foundValue.Trim(' ns')
$foundValue = $foundValue.Trim(' B')
Expand Down Expand Up @@ -130,7 +123,11 @@ $configuration = $object.configuration
$framework = $object.framework
$filter = $object.filter
$meanColumn = "1"
$allocatedRespParseColumn = "4"
$allocatedRespParseColumn = "5" # Windows adds an additional column before the allocated column
if ($IsLinux) {
$allocatedRespParseColumn = "4"
}

$allocatedLuaColumn = "5"

# Set the expected values based on the OS
Expand Down

0 comments on commit 8aecf5d

Please sign in to comment.