Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions test/tools/CodeCoverageAutomation/Start-CodeCoverageRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,11 @@ try
}

# grab the commitID, we need this to grab the right sources
$gitCommitId = & "$psBinPath\pwsh.exe" -noprofile -command { $PSVersiontable.GitCommitId }
$commitId = $gitCommitId.substring($gitCommitId.LastIndexOf('-g') + 2)
$assemblyLocation = & "$psBinPath\pwsh.exe" -noprofile -command { Get-Item ([psobject].Assembly.Location) }
$productVersion = $assemblyLocation.VersionInfo.productVersion
$commitId = $productVersion.split(" ")[-1]

Write-LogPassThru -Message "Using GitCommitId: $commitId"

# download the src directory
try
Expand Down