Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $successPattern = "<status status=""FAIL"""
- $Matches = select-string -Pattern $successPattern -Path 'C:\agent\_work\_robotframework\Output\output.xml'
- $errorCount = $Matches.Matches.Count
- if ($errorCount -ne 0) {
- Write-Host "##vso[task.logissue type=error;]There are $errorCount errors in the Robot Framework tests"
- #exit 1 # decided I won't have it stop. Instead I'll have it as a partial pass
- }
Add Comment
Please, Sign In to add comment