Skip to content

Commit

Permalink
fix: wrong test output name (Azure#17720)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadelesh authored Apr 24, 2022
1 parent fd331bf commit bf144f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions eng/scripts/MgmtTestLib.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ function TestAndGenerateReport($dir)
$Env:AZURE_PASSWORD = "mock-test"

# do test with corage report and convert to cobertura format
Write-Host "go cmd: go test -v -coverprofile coverage.txt | Tee-Object -FilePath output.txt"
Write-Host "go cmd: go test -v -coverprofile coverage.txt | Tee-Object -FilePath outfile.txt"
go test -v -coverprofile coverage.txt | Tee-Object -FilePath outfile.txt
Write-Host "report.xml: Get-Content output.txt | go-junit-report > report.xml"
Write-Host "report.xml: Get-Content outfile.txt | go-junit-report > report.xml"
Get-Content outfile.txt | go-junit-report > report.xml
Write-Host "coverage.json: gocov convert ./coverage.txt > ./coverage.json"
gocov convert ./coverage.txt > ./coverage.json
Expand Down
2 changes: 1 addition & 1 deletion eng/scripts/automation/Invoke-MockTest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $sdk = Get-GoModuleProperties $packageFolder
ExecuteSingleTest $sdk $runLocalMockServer

TestAndGenerateReport $packageFolder
$testoutputFile = Join-Path $packageFolder output.txt
$testoutputFile = Join-Path $packageFolder outfile.txt
$all = (Select-String -Path $testoutputFile -Pattern "=== RUN").Matches.length
$pass = (Select-String -Path $testoutputFile -Pattern "--- PASS").Matches.length
$fail = (Select-String -Path $testoutputFile -Pattern "--- FAIL").Matches.length
Expand Down

0 comments on commit bf144f6

Please sign in to comment.