Skip to content

Commit bf144f6

Browse files
authored
fix: wrong test output name (Azure#17720)
1 parent fd331bf commit bf144f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eng/scripts/MgmtTestLib.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ function TestAndGenerateReport($dir)
309309
$Env:AZURE_PASSWORD = "mock-test"
310310

311311
# do test with corage report and convert to cobertura format
312-
Write-Host "go cmd: go test -v -coverprofile coverage.txt | Tee-Object -FilePath output.txt"
312+
Write-Host "go cmd: go test -v -coverprofile coverage.txt | Tee-Object -FilePath outfile.txt"
313313
go test -v -coverprofile coverage.txt | Tee-Object -FilePath outfile.txt
314-
Write-Host "report.xml: Get-Content output.txt | go-junit-report > report.xml"
314+
Write-Host "report.xml: Get-Content outfile.txt | go-junit-report > report.xml"
315315
Get-Content outfile.txt | go-junit-report > report.xml
316316
Write-Host "coverage.json: gocov convert ./coverage.txt > ./coverage.json"
317317
gocov convert ./coverage.txt > ./coverage.json

eng/scripts/automation/Invoke-MockTest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $sdk = Get-GoModuleProperties $packageFolder
3434
ExecuteSingleTest $sdk $runLocalMockServer
3535

3636
TestAndGenerateReport $packageFolder
37-
$testoutputFile = Join-Path $packageFolder output.txt
37+
$testoutputFile = Join-Path $packageFolder outfile.txt
3838
$all = (Select-String -Path $testoutputFile -Pattern "=== RUN").Matches.length
3939
$pass = (Select-String -Path $testoutputFile -Pattern "--- PASS").Matches.length
4040
$fail = (Select-String -Path $testoutputFile -Pattern "--- FAIL").Matches.length

0 commit comments

Comments
 (0)