mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
fix or/and
This commit is contained in:
@@ -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."
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user