Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions test/powershell/Host/Logging.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ Creating Scriptblock text \(1 of 1\):#012{0}(⏎|#012)*ScriptBlock ID: [0-9a-z\-
}
}

It 'Verifies scriptblock logging' -Skip:(!$IsSupportedEnvironment) {
# Skip test as it is failing in PowerShell CI on Linux platform.
# Tracking Issue: https://github.com/PowerShell/PowerShell/issues/17092
It 'Verifies scriptblock logging' -Skip <#-Skip:(!$IsSupportedEnvironment)#> {
$configFile = WriteLogSettings -LogId $logId -ScriptBlockLogging -LogLevel Verbose
$script = @'
$PID
Expand Down Expand Up @@ -217,7 +219,9 @@ $PID
$createdEvents[2].Message | Should -Match ($scriptBlockCreatedRegExTemplate -f "Write\-Verbose 'testheader123' ;Write\-verbose 'after'")
}

It 'Verifies scriptblock logging with null character' -Skip:(!$IsSupportedEnvironment) {
# Skip test as it is failing in PowerShell CI on Linux platform.
# Tracking Issue: https://github.com/PowerShell/PowerShell/issues/17092
It 'Verifies scriptblock logging with null character' -Skip <#-Skip:(!$IsSupportedEnvironment)#> {
$configFile = WriteLogSettings -LogId $logId -ScriptBlockLogging -LogLevel Verbose
$script = @'
$PID
Expand Down