Skip to content

Commit 04f9d5c

Browse files
committed
Fix test result path
1 parent 642f69c commit 04f9d5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psake.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task Pester-Meta -Depends Init {
4444
$testResults = Invoke-Pester -Path $metaTests -PassThru -OutputFormat NUnitXml -OutputFile $testResultsFile
4545
# If in AppVeyor, upload test results
4646
if ($env:BHBuildSystem -eq 'AppVeyor') {
47-
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", "$ProjectRoot\$testResultsFile")
47+
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", $testResultsFile)
4848
}
4949
if ($testResults.FailedCount -gt 0) {
5050
$testResults | Format-List
@@ -63,7 +63,7 @@ task Pester-Module -depends Init {
6363
$testResults = Invoke-Pester -Path $unitTests -PassThru -OutputFormat NUnitXml -OutputFile $testResultsFile
6464
# If in AppVeyor, upload test results
6565
if ($env:BHBuildSystem -eq 'AppVeyor') {
66-
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", "$ProjectRoot\$testResultsFile")
66+
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", $testResultsFile)
6767
}
6868
if ($testResults.FailedCount -gt 0) {
6969
$testResults | Format-List

0 commit comments

Comments
 (0)