Fix Windows ZIP mode fixture encoding
CI / tests-and-images (pull_request) Successful in 2m13s
Runner smoke test / runner-smoke (pull_request) Successful in 3s

This commit is contained in:
codex committed 2026-11-03 10:24:45 +03:00
1 parent 81ab7aac39
commit 00b0af69c2
2 files changed
+3 -2

No files matched your search

@@ -68,8 +68,7 @@ try {
$copy = $targetArchive.CreateEntry($entry.FullName, [System.IO.Compression.CompressionLevel]::NoCompression)
$copy.ExternalAttributes = $entry.ExternalAttributes
if (-not $changed) {
$copy.ExternalAttributes = [BitConverter]::ToInt32(
[BitConverter]::GetBytes([uint32]0x81A00000), 0)
$copy.ExternalAttributes = [int]-2120220672
$changed = $true
}
$entryInput = $entry.Open()
@@ -263,6 +263,8 @@ class WindowsReleaseBootstrapTests(unittest.TestCase):
self.assertIn("[IO.FileAttributes]::ReparsePoint", harness)
self.assertIn("[IO.Directory]::Delete($resolvedRoot, $true)", harness)
self.assertIn("-not $itemPath.StartsWith($resolvedRoot + '\\'", harness)
self.assertLess(harness.index("if ($alteredMode -ne 0x81A0)"),
harness.index("Assert-ReceiverBundleEntryMode -Entry $alteredEntry"))
def test_windows_tool_environment_discards_path_and_git_overrides(self):
environment = {