fix or/and

This commit is contained in:
Roy Ashbrook
2021-11-08 16:56:23 -05:00
parent a3dced10e4
commit ebe49f1650
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ try {
if ($IsMissingACE) {
Write-Warning "MICROSOFT.ACE.OLEDB is missing! Tests will be skipped."
}
$skip = $skip -or $IsMissingACE
$skip = $skip -and $IsMissingACE
}
catch {
Write-Warning "Unable to get sources from System.Data.OleDb. Tests will be skipped."

View File

@@ -11,7 +11,7 @@ Write-Warning "`$tfp = '$tfp'"
Write-Warning "`Test-Path $tfp = '$(Test-Path $tfp)'"
Write-Warning "`$cs = '$cs'"
Write-Warning "`$IsMissingACE = '$IsMissingACE'"
$skip = $IsLinux -or $IsMacOS -or $IsMissingACE
$skip = ($IsLinux -or $IsMacOS) -and $IsMissingACE
Describe "Read-OleDbData" -Tag "Read-OleDbData" {
$PSDefaultParameterValues = @{ 'It:Skip' = $skip }
Context "Basic Tests" {