Skip to content

Commit

Permalink
feat: remove exit in testing free space (#4771)
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiezhang1997 authored Aug 5, 2024
1 parent 2976230 commit 9037771
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vhdbuilder/packer/configure-windows-vhd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ function Validate-VHDFreeSize {
foreach($disk in $disksInfo) {
if ($disk.DeviceID -eq "C:") {
if ($disk.FreeSpace -lt $global:lowestFreeSpace) {
throw "Disk C: Free space $($disk.FreeSpace) is less than $($global:lowestFreeSpace)"
Write-Log "Disk C: Free space $($disk.FreeSpace) is less than $($global:lowestFreeSpace)"
}
break
}
Expand Down
3 changes: 1 addition & 2 deletions vhdbuilder/packer/test/windows-vhd-content-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ function Test-RegistryAdded {
Validate-WindowsFixInFeatureManagement -Name 747051149
}
if ($env:WindowsSKU -Like '23H2*') {
Validate-WindowsFixInHnsState -Name NamespaceExcludedUdpPorts -Value 65330
Validate-WindowsFixInHnsState -Name PortExclusionChange -Value 1
Validate-WindowsFixInHnsState -Name PortExclusionChange -Value 0
}
}

Expand Down
1 change: 0 additions & 1 deletion vhdbuilder/packer/write-release-notes-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ $wuRegistryNames = @(
"HnsPreallocatePortRange",
"4154935436",
"124082829",
"NamespaceExcludedUdpPorts",
"PortExclusionChange",
"2290715789",
"3152880268",
Expand Down

0 comments on commit 9037771

Please sign in to comment.