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
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
$computerInfoAll = $null
$testStartTime = Get-Date

$excludedProperties = @(
"CsPhysicallyInstalledMemory",
"OsServerLevel"
)

function Get-ComputerInfoForTest
{
# NOTE: $forceRefresh only applies to the case where $properties is null
Expand Down Expand Up @@ -1041,8 +1046,13 @@ try {
# easier to debug the problem if we know *all* the failures
# issue: https://github.com/PowerShell/PowerShell/issues/4762
# CsPhysicallyInstalledMemory not available when run in nightly builds
It "Test 01. Standard Property test - all properties (<property>)" -testcase $testCases -Pending {
It "Test 01. Standard Property test - all properties (<property>)" -testcase $testCases {
param ( $property )

if ($excludedProperties -contains $property) {
Set-ItResult -Pending -Because "'$property' is not available in nightly builds"
}

$specialProperties = "CsNetworkAdapters","CsProcessors","OsHotFixes"
if ( $specialProperties -contains $property )
{
Expand Down