Fix Windows ZIP mode fixture encoding
This commit is contained in:
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 = {
|
||||
|
||||
Reference in new issue
Block a user