Skip to content

Commit

Permalink
Fixed but in the allocated part as runs differently on Linux vs Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenge committed Oct 3, 2024
1 parent 8b82b42 commit 064f360
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/BDNPerfTests/run_bdnperftest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,16 @@ param ($ResultsLine, $columnNum)
# Remove the leading and trailing pipes and split the string by '|'
$columns = $ResultsLine.Trim('|').Split('|')
$column = $columns | ForEach-Object { $_.Trim() }
$foundValue = $column[$columnNum].Trim(' us')
$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

0 comments on commit 064f360

Please sign in to comment.