Skip to content

Commit

Permalink
For GitHub actions, starts on root directory already
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenge committed Sep 3, 2024
1 parent 2b9da5a commit 89375c1
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions test/BDNPerfTests/run_bdnperftest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ Write-Output "PathString: $pathstring"

if ($pathString -contains "test") {
$position = $pathString.IndexOf("test")
$basePath = $pathstring.Substring(0,$position-1) # take off slash off end as well
Write-Output "The position of 'test' is: $position"
} else {
$position = $pathString.IndexOf(".github")
Write-Output "The position of '.github' is: $position"
$basePath = $pathstring # already in base as not in test
}


Expand All @@ -106,22 +106,11 @@ if ($pathString -contains "test") {
#}
#Write-Host "-----------------------------------------------DEBUG Position: $position"

$basePath = $pathstring.Substring(0,$position-1) # take off slash off end as well
#$basePath = $pathstring.Substring(0,$position-1) # take off slash off end as well

Write-Host "------------ DEBUG Basepath: $basePath"


if ($pathString -contains "test") {
$position = $pathString.IndexOf("test")
Write-Output "The position of 'test' is: $position"
} else {
$position = $pathString.IndexOf(".github")
Write-Output "The position of '.github' is: $position"
}




# Read the test config file and convert the JSON to a PowerShell object
if (-not (Test-Path -Path $configFile)) {
Write-Error -Message "The test config file $configFile does not exist." -Category ObjectNotFound
Expand Down

0 comments on commit 89375c1

Please sign in to comment.