Skip to content

Commit

Permalink
Allow user to override FormatAzureDevopsLogMessages to display log me…
Browse files Browse the repository at this point in the history
…ssages
  • Loading branch information
ArmaanMcleod committed Jun 17, 2021
1 parent 9115eb8 commit 64e1aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ function Invoke-Pester {

# Variable is set to 'True' if the script is being run by a build task. https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml
# Do not fix this to check for boolean value, the value is set to literal string 'True'
if ([Environment]::GetEnvironmentVariable("TF_BUILD") -eq 'True') {
if (-not $PesterPreference.Output.FormatAzureDevopsLogMessages.Value -and [Environment]::GetEnvironmentVariable("TF_BUILD") -eq 'True') {
$PesterPreference.Output.FormatAzureDevopsLogMessages = $true
}

Expand Down

0 comments on commit 64e1aaf

Please sign in to comment.